Files
nairobi/lib/capistrano/tasks/logs.cap
Manuel Maldonado 4b501ee46b Capistrano recipe
2015-08-12 01:36:42 +02:00

15 lines
438 B
Plaintext
Executable File

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