I'd like to add some messages to a deploy/before_bundle.rb hook in order to output extra details of the progress to the command-line when deploying. Is this possible?
Asked
Active
Viewed 229 times
2 Answers
1
Have you tried:
run "echo 'this will make it to the terminal'"
I'm just guessing that might work.

Mark
- 9,966
- 7
- 37
- 39
1
It's just Ruby so puts
is fine
puts "About to run a command"
run! "/bin/some/command"
puts "Finished"
# Sometimes the order seems off so try
$stderr.puts "About to run a command"
$stderr.flush

David Kennedy
- 333
- 1
- 3
- 13
-
in my case `$stderr.puts "About to run a command"` worked however the `puts "About to run a command"` seems to be failing – Shiva Jun 11 '15 at 05:44