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.4.5 lib/eycap/recipes/slice.rb
engineyard-eycap-0.4.6 lib/eycap/recipes/slice.rb
engineyard-eycap-0.4.7 lib/eycap/recipes/slice.rb
engineyard-eycap-0.4.9 lib/eycap/recipes/slice.rb
gramos-robbie-0.0.1 lib/robbie/recipes/slice.rb
gramos-robbie-0.0.2 lib/robbie/recipes/slice.rb
square-eycap-0.4.13 lib/eycap/recipes/slice.rb
squirrel-eycap-0.4.10 lib/eycap/recipes/slice.rb
squirrel-eycap-0.4.12 lib/eycap/recipes/slice.rb
eycap-0.5.6 lib/eycap/recipes/slice.rb
eycap-0.5.1 lib/eycap/recipes/slice.rb
eycap-0.5.0 lib/eycap/recipes/slice.rb
eycap-0.4.16 lib/eycap/recipes/slice.rb