Sha256: 77a20247be194d2d7feb2762779118635e6cd91d6bd1a59e2eaf24ab2cb28d96
Contents?: true
Size: 382 Bytes
Versions: 45
Compression:
Stored size: 382 Bytes
Contents
Capistrano::Configuration.instance.load do desc "tail production log files" task :tail_logs, :roles => :app do run "tail -f #{shared_path}/log/*.log" do |channel, stream, data| trap("INT") { puts 'Interupted'; exit 0; } puts # for an extra line break before the host name puts "#{channel[:host]}: #{data}" break if stream == :err end end end
Version data entries
45 entries across 45 versions & 2 rubygems