capones_recipes 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
|
|
1
|
+
Capistrano::Configuration.instance.load do
|
2
|
+
desc "Watch the log on the application server."
|
3
|
+
task :watch_logs, :role => [:app] do
|
4
|
+
log_file = "#{shared_path}/log/#{rails_env}.log"
|
5
|
+
|
6
|
+
run "tail -f #{log_file}" do |channel, stream, data|
|
7
|
+
puts data if stream == :out
|
8
|
+
if stream == :err
|
9
|
+
puts "[Error: #{channel[:host]}->#{rails_env}] #{data}"
|
10
|
+
break
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: capones_recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.2.
|
5
|
+
version: 1.2.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Roman Simecek (CyT)
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-10-
|
14
|
+
date: 2011-10-31 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: capistrano
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- lib/capones_recipes/tasks/rails.rb
|
129
129
|
- lib/capones_recipes/tasks/rails/bundler.rb
|
130
130
|
- lib/capones_recipes/tasks/rails/database_yml.rb
|
131
|
+
- lib/capones_recipes/tasks/rails/logs.rb
|
131
132
|
- lib/capones_recipes/tasks/rails/mod_rails.rb
|
132
133
|
- lib/capones_recipes/tasks/rails31.rb
|
133
134
|
- lib/capones_recipes/tasks/rails31/rails31.rb
|