Skip to content

Commit

Permalink
Even with benchmarking, run_locally should return the output instead …
Browse files Browse the repository at this point in the history
…of an exception
  • Loading branch information
cgriego committed Sep 18, 2010
1 parent 1aa7c8b commit 6387299
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/capistrano/recipes/deploy.rb
Expand Up @@ -96,6 +96,7 @@ def with_env(name, value)
# returns the command output as a string
def run_locally(cmd)
logger.trace "executing locally: #{cmd.inspect}" if logger
output_on_stdout = nil
elapsed = Benchmark.realtime do
output_on_stdout = `#{cmd}`
end
Expand Down

0 comments on commit 6387299

Please sign in to comment.