cap-git-deploy 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module Cap
2
2
  module Git
3
3
  module Deploy
4
- VERSION = '0.0.4'
4
+ VERSION = '0.0.5'
5
5
  end
6
6
  end
7
7
  end
@@ -1,4 +1,5 @@
1
1
  set :revision_file, 'REVISION'
2
+ set(:current_revision) { capture("head -1 #{current_path}/REVISION", :except => { :no_release => true }).chomp }
2
3
 
3
4
  namespace :revision do
4
5
  desc "Create a REVISION file containing the SHA of the deployed commit"
@@ -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
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: 2012-11-16 00:00:00.000000000 Z
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: