添加输出消息以部署挂钩

时间:2012-04-12 15:24:03

标签: engineyard

我想在deploy / before_bundle.rb挂钩中添加一些消息,以便在部署时将更多详细信息输出到命令行。这可能吗?

2 个答案:

答案 0 :(得分:1)

你试过了吗?

run "echo 'this will make it to the terminal'"

我只是猜测那可行。

答案 1 :(得分:1)

它只是Ruby所以puts很好

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