Chromium Code Reviews| Index: scripts/slave/recipe_modules/cipd/config.py |
| diff --git a/scripts/slave/recipe_modules/cipd/config.py b/scripts/slave/recipe_modules/cipd/config.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d1f5afc71d9bb8ad4e66e8764c0393b16a3cca99 |
| --- /dev/null |
| +++ b/scripts/slave/recipe_modules/cipd/config.py |
| @@ -0,0 +1,12 @@ |
| +from recipe_engine.config import config_item_context |
|
Vadim Sh.
2015/06/29 21:00:46
I personally don't understand how this config stuf
seanmccullough
2015/06/30 17:39:39
IIRC iannucci@ suggested this approach. I'm fine
Vadim Sh.
2015/06/30 17:58:35
Yeah, let's keep it simple for now and add it late
seanmccullough
2015/06/30 19:12:03
Done.
|
| +from recipe_engine.config import ConfigGroup |
| +from recipe_engine.config import Dict |
| + |
| +def BaseConfig(**_kwargs): |
| + # This never gets called. |
| + return ConfigGroup( |
| + packages = Dict(value_type=dict), |
| + ) |
| + |
| +config_ctx = config_item_context(BaseConfig) |
| + |