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

Version Path
caploy-0.2.5 lib/caploy/recipes/monitoring.rb
caploy-0.2.4 lib/caploy/recipes/monitoring.rb
caploy-0.2.3 lib/caploy/recipes/monitoring.rb
caploy-0.2.2 lib/caploy/recipes/monitoring.rb
caploy-0.2.1 lib/caploy/recipes/monitoring.rb
caploy-0.2.0 lib/caploy/recipes/monitoring.rb
caploy-0.1.12 lib/caploy/recipes/monitoring.rb
caploy-0.1.11 lib/caploy/recipes/monitoring.rb
caploy-0.1.10 lib/caploy/recipes/monitoring.rb
caploy-0.1.9 lib/caploy/recipes/monitoring.rb
caploy-0.1.8 lib/caploy/recipes/monitoring.rb
caploy-0.1.7 lib/caploy/recipes/monitoring.rb
caploy-0.1.6 lib/caploy/recipes/monitoring.rb
caploy-0.1.5 lib/caploy/recipes/monitoring.rb
caploy-0.1.4 lib/caploy/recipes/monitoring.rb
caploy-0.1.3 lib/caploy/recipes/monitoring.rb
caploy-0.1.2 lib/caploy/recipes/monitoring.rb
caploy-0.1.1 lib/caploy/recipes/monitoring.rb
caploy-0.1.0 lib/caploy/recipes/monitoring.rb
ms_deploy-0.3.6 lib/ms_deploy/recipes/monitoring.rb