Sha256: 0ff07fee0a87dd302560370c95e6a6b0447abd9c94b83c73ca0b5009b784ffd5

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  desc "tail production log files" 
  task :tail_logs, :roles => :app do
    run "tail -f #{shared_path}/log/production.log" do |channel, stream, data|
      puts  # for an extra line break before the host name
      puts "#{channel[:host]}: #{data}" 
      break if stream == :err    
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cap_bootstrap-0.3.0 lib/cap_bootstrap/recipes/utilities.rb
cap_bootstrap-0.2 lib/cap_bootstrap/recipes/utilities.rb