From 561280352ad6554324bb3fc24440716d4b29780d Mon Sep 17 00:00:00 2001 From: Alexandr Subbotin Date: Fri, 25 Jul 2014 12:13:42 +0400 Subject: [PATCH] Fix mana:watchlog command --- lib/mana/capistrano.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mana/capistrano.rb b/lib/mana/capistrano.rb index 8732844..8a2a892 100644 --- a/lib/mana/capistrano.rb +++ b/lib/mana/capistrano.rb @@ -159,7 +159,7 @@ def sudo_runner desc "Watch Rails log" task :watchlog do begin - run "tail -n 100 -f #{fetch(:shared_path)}/log/#{rails_env}.log", pty: true do |_, stream, data| + run "tail -n 100 -f #{fetch(:shared_path)}/log/#{rails_env}.log", pty: true do |channel, stream, data| puts "[#{channel[:host]}][#{Time.now.strftime('%Y-%m-%d %H:%M:%S')}] #{data}" break if stream == :err end