Sha256: d14ba5578a65d9be2a362f35ed149fefb929b69d43d5058adbcb2af7844ceb9e

Contents?: true

Size: 779 Bytes

Versions: 16

Compression:

Stored size: 779 Bytes

Contents

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

  namespace :slice do
    desc "Tail the Rails logs for your environment"
    task :tail_environment_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 for your 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

16 entries across 16 versions & 3 rubygems

Version Path
eycap-0.5.17 lib/eycap/recipes/slice.rb
eycap-0.5.16 lib/eycap/recipes/slice.rb
eycap-0.5.15 lib/eycap/recipes/slice.rb
eycap-0.5.14 lib/eycap/recipes/slice.rb
eycap-0.5.13 lib/eycap/recipes/slice.rb
eycap-0.5.12 lib/eycap/recipes/slice.rb
eycap-0.5.11 lib/eycap/recipes/slice.rb
eycap-0.5.10 lib/eycap/recipes/slice.rb
eycap-0.5.9 lib/eycap/recipes/slice.rb
eycap-0.5.8 lib/eycap/recipes/slice.rb
eycap-0.5.7 lib/eycap/recipes/slice.rb
newrelic-eycap-0.5.6.0 lib/eycap/recipes/slice.rb
gabetax-eycap-0.5.6 lib/eycap/recipes/slice.rb
eycap-0.5.5 lib/eycap/recipes/slice.rb
eycap-0.5.3 lib/eycap/recipes/slice.rb
eycap-0.5.2 lib/eycap/recipes/slice.rb