Sha256: 4fabe03c1ae86cdf8c51ee71f04adf84b8414d858b66119e674bff1c3191f520

Contents?: true

Size: 438 Bytes

Versions: 57

Compression:

Stored size: 438 Bytes

Contents

namespace :logs do
  task :tail, :file do |t, args|
    if args[:file]
      on roles(:app) do
        execute "tail -f #{shared_path}/log/#{args[:file]}.log"
      end
    else
      puts "please specify a logfile e.g: 'rake logs:tail[logfile]"
      puts "will tail 'shared_path/log/logfile.log'"
      puts "remember if you use zsh you'll need to format it as:"
      puts "rake 'logs:tail[logfile]' (single quotes)"
    end
  end
end

Version data entries

57 entries across 57 versions & 4 rubygems

Version Path
capistrano-cookbook-5.0.2 lib/capistrano/cookbook/tasks/logs.cap
capistrano-cookbook-5.0.1 lib/capistrano/cookbook/tasks/logs.cap
capistrano-cookbook-5.0.0 lib/capistrano/cookbook/tasks/logs.cap
meataxe-0.6.2 lib/meataxe/capistrano/tasks/logs.cap
meataxe-0.5.0 lib/meataxe/capistrano/tasks/logs.cap
teleporter-2.0.11 lib/generators/teleport/templates/capistrano/tasks/logs.rake
teleporter-2.0.10 lib/generators/teleport/templates/capistrano/tasks/logs.rake
capistrano-cookbook-0.2.1 lib/capistrano/cookbook/tasks/logs.cap
teleporter-2.0.9 lib/generators/teleport/templates/capistrano/tasks/logs.rake
teleporter-2.0.8 lib/generators/teleport/templates/capistrano/tasks/logs.rake
teleporter-2.0.7 lib/generators/teleport/templates/capistrano/tasks/logs.rake
teleporter-2.0.6 lib/generators/teleport/templates/capistrano/tasks/logs.rake
teleporter-2.0.4 lib/generators/teleport/templates/capistrano/tasks/logs.rake
teleporter-2.0.2 lib/generators/teleport/templates/capistrano/tasks/logs.rake
teleporter-2.0.1 lib/generators/teleport/templates/capistrano/tasks/logs.rake
teleporter-2.0.0 lib/generators/teleport/templates/capistrano/tasks/logs.rake
teleporter-1.2.4 lib/generators/initial/templates/capistrano/tasks/logs.rake
teleporter-1.2.3 lib/generators/initial/templates/capistrano/tasks/logs.rake
teleporter-1.2.2 lib/generators/initial/templates/capistrano/tasks/logs.rake
teleporter-1.2.1 lib/generators/initial/templates/capistrano/tasks/logs.rake