cap-git-deploy 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/cap-git-deploy/version.rb +1 -1
- data/lib/recipes/git-revisioning.rb +1 -0
- data/lib/recipes/logs.rb +15 -0
- metadata +3 -2
data/lib/recipes/logs.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
namespace :logs do
|
2
|
+
desc "app current stage log files"
|
3
|
+
task :tail_app, :roles => :app do
|
4
|
+
trap('INT') { puts 'Interupted'; exit 0; }
|
5
|
+
run "tail -F #{current_path}/log/#{stage}.log" do |channel, stream, data|
|
6
|
+
puts # for an extra line break before the host name
|
7
|
+
puts "#{channel[:host]}: #{data}"
|
8
|
+
break if stream == :err
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
task :default, :roles => :app do
|
13
|
+
tail_app
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cap-git-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- lib/cap-git-deploy/version.rb
|
59
59
|
- lib/recipes/fast-git-deploy.rb
|
60
60
|
- lib/recipes/git-revisioning.rb
|
61
|
+
- lib/recipes/logs.rb
|
61
62
|
homepage: http://www.mikamai.com
|
62
63
|
licenses: []
|
63
64
|
post_install_message:
|