capistrano-pending 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37ce7ef86f60cdca633a82a56acb70e5c6e3a5a6
4
- data.tar.gz: 86c236435512d63bafa43eb9c29c8c632c8450fb
3
+ metadata.gz: a24d2f16155b395d9f22495291850dc93cb45c3f
4
+ data.tar.gz: f712c951b36a53efcabb49d5ac4c176c11c280a2
5
5
  SHA512:
6
- metadata.gz: 7ec8a7f467d23306baf3df5d7d1c527d1a87c6423e200c8e104c48a772607c2d3585431f478c1e8d77e2061aa84627caa7f378854990df9988eb8ce5834b2a1c
7
- data.tar.gz: 41b122da63d62af480204fc155a9166f06519372e9f9b7172092194cd04acd31a222f5e4f2e9149bd82ca9cb2bb9f21f68f320bea33aec2ff5651d5a48e011a6
6
+ metadata.gz: c9a4e66ec11b6917db585fcee8b3dc8b6b98787c93ef77427d4b4d2358a030a9623b6cca25156a8ecfc63a3c408ac5a9f77c363506e0f79dfe4d273adc93ca98
7
+ data.tar.gz: 343d6af1c52781a7dc6c5e36246118a7db777539ec7691a4b69b866d5bf695baa3327579eda8607f1ec2f058dc18e35d19c6aa4d5939b762bd070a88edfb60a8
@@ -5,7 +5,13 @@ namespace :deploy do
5
5
  of the changes that have occurred since the last deploy. Note that this \
6
6
  might not be supported on all SCM's
7
7
  DESC
8
- task :pending => "deploy:pending:log"
8
+ task :pending do
9
+ on roles fetch(:capistrano_pending_role, :db) do |host|
10
+ if test "[ -f #{current_path}/REVISION ]"
11
+ invoke "deploy:pending:log"
12
+ end
13
+ end
14
+ end
9
15
 
10
16
  namespace :pending do
11
17
  def _scm
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Pending
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-pending
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masato Ikeda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-20 00:00:00.000000000 Z
11
+ date: 2014-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano