Created
November 6, 2013 09:25
-
-
Save SteveBenner/7333298 to your computer and use it in GitHub Desktop.
Capistrano DSL addition for executing a command under a specific working directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# allows one to specify the working directory for command execution | |
def execute_at(path, cmd) | |
execute "cd #{path} && #{cmd}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment