Skip to content

Make use of configurable global Directory variable #8

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

Open
cirocosta opened this issue Dec 18, 2017 · 0 comments
Open

Make use of configurable global Directory variable #8

cirocosta opened this issue Dec 18, 2017 · 0 comments

Comments

@cirocosta
Copy link
Owner

Hey,

right now we advertise the possibility of setting Directory as the default directory to be used as cwd but we're not actually using it at the directory resolution method.

Assuming that we have a cr file as follows:

---
Runtime:
  Directory: '/var/run/cr'
Jobs:
  - Id: 'Job1'
    Run: 'echo Job1_pwd=$(pwd)'

  - Id: 'Job2'
    Directory: '/tmp'
    Run: 'echo Job2_pwd=$(pwd)'

The result from the execution would be something like:

Job1_pwd=/var/run/cr
Job2_pwd=/tmp
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