2

デプロイ時に進行状況の詳細をコマンドラインに出力するために、deploy/before_bundle.rbフックにいくつかのメッセージを追加したいと思います。これは可能ですか?

4

2 に答える 2

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
于 2012-09-27T15:46:41.317 に答える
1

やってみました:

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

私はそれがうまくいくかもしれないと推測しています。

于 2012-05-08T21:38:26.190 に答える