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 contexts #4

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

add generic contexts #4

mickours opened this issue Apr 24, 2014 · 0 comments

Comments

@mickours
Copy link
Contributor

To be independent from underlying interpreter (bash, python, ruby, powershell...), the context declaration variables like workdir should be remove and replace by an inline command like:

bash -c "cd /tmp && bash"

It will be a good idea to enable generic context definition linked to the exec_* command. For example:

# in recipe
global:
  context:
    - my_ctx: bash -c "cd /tmp && bash"

# in steps
- my_step:
  - exec_my_ctxt: echo "Hello :-)"
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

1 participant