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 :exec-dir option to change working directory of executions #76

Merged
merged 1 commit into from
Dec 5, 2015

Conversation

crisptrutski
Copy link
Contributor

Closes #68

A pared back, explicit alternate to to #69

@crisptrutski
Copy link
Contributor Author

@danielcompton @bensu have you had a chance to look at this yet? Green tests 🍏

@@ -68,7 +75,7 @@
as it happens by default."
([cmd] (sh cmd {:verbose true}))
([cmd opts]
(let [proc (exec! cmd)
(let [proc (exec! cmd (:exec-dir opts))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably prefer to see the logic for switching based on whether :exec-dir exists here, rather than further down the call stack. At the moment you have to go three layers deep to see what's happening. OTOH, you're still going to end up with roughly the same code, just a little more verbose. Perhaps you could just add a comment explaining what's happening?

@danielcompton
Copy link
Contributor

Hey I've left some comments. It could also be good to have some tests for this new behaviour, (perhaps with boot?) and some brief docs on the config option.

@bensu bensu merged commit e18778e into bensu:master Dec 5, 2015
@crisptrutski crisptrutski deleted the exec-dir branch December 5, 2015 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants