Sha256: c344e8911d419bf0c496cb366f77112e97edde8614e668311db5b5181bf3f284

Contents?: true

Size: 784 Bytes

Versions: 33

Compression:

Stored size: 784 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do

  namespace :slice do
    desc "Tail the Rails production log for this environment"
    task :tail_production_logs, :roles => :app do
      run "tail -f #{shared_path}/log/#{rails_env}.log" do |channel, stream, data|
        puts  # for an extra line break before the host name
        puts "#{channel[:server]} -> #{data}" 
        break if stream == :err    
      end
    end
    desc "Tail the Mongrel logs this environment"
    task :tail_mongrel_logs, :roles => :app do
      run "tail -f #{shared_path}/log/mongrel*.log" do |channel, stream, data|
        puts  # for an extra line break before the host name
        puts "#{channel[:server]} -> #{data}" 
        break if stream == :err    
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 5 rubygems

Version Path
engineyard-eycap-0.3.10 lib/eycap/recipes/slice.rb
engineyard-eycap-0.3.11 lib/eycap/recipes/slice.rb
engineyard-eycap-0.3.3 lib/eycap/recipes/slice.rb
engineyard-eycap-0.3.4 lib/eycap/recipes/slice.rb
engineyard-eycap-0.3.5 lib/eycap/recipes/slice.rb
engineyard-eycap-0.3.6.1 lib/eycap/recipes/slice.rb
engineyard-eycap-0.3.6 lib/eycap/recipes/slice.rb
engineyard-eycap-0.3.7 lib/eycap/recipes/slice.rb
engineyard-eycap-0.3.8 lib/eycap/recipes/slice.rb
engineyard-eycap-0.3.9 lib/eycap/recipes/slice.rb
engineyard-eycap-0.4.0 lib/eycap/recipes/slice.rb
engineyard-eycap-0.4.1 lib/eycap/recipes/slice.rb
engineyard-eycap-0.4.10 lib/eycap/recipes/slice.rb
engineyard-eycap-0.4.11 lib/eycap/recipes/slice.rb
engineyard-eycap-0.4.12 lib/eycap/recipes/slice.rb
engineyard-eycap-0.4.14 lib/eycap/recipes/slice.rb
engineyard-eycap-0.4.15 lib/eycap/recipes/slice.rb
engineyard-eycap-0.4.2 lib/eycap/recipes/slice.rb
engineyard-eycap-0.4.3 lib/eycap/recipes/slice.rb
engineyard-eycap-0.4.4 lib/eycap/recipes/slice.rb