Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add generic section definition and optionnal activation #7

Open
mickours opened this issue Apr 24, 2014 · 3 comments
Open

add generic section definition and optionnal activation #7

mickours opened this issue Apr 24, 2014 · 3 comments

Comments

@mickours
Copy link
Contributor

Allows users to add additional sections to take advantage of the hooks and provide an activation mechanism using CLI. For example:

# in recipe
setup:
...
my_section:
...
export:

# in steps
my_step:
  - on_my_section_init:
   ...

# using CLI to run only setup and my_section
kameleon build my_recipe --section [setup, my_section]
@npf
Copy link
Contributor

npf commented Sep 19, 2014

+1

@mickours
Copy link
Contributor Author

An other way to do this is the use of YAML tags like in this project:
http://vagga.readthedocs.org/en/latest/config_overview.html#commands

We can use these tags to select a subpart of the recipe. For example I tag some steps with !my_steps and than use an option to execute only my tag or the other way around to exclude some tags like:

kameleon my_recipe.yaml --only-tagged  my_steps
#or
kameleon my_recipe.yaml --exclude-tagged my_steps

What do you think?

@npf
Copy link
Contributor

npf commented Dec 15, 2015

Looks nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants