capistrano-s3_archive 0.4.4 → 0.4.5

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: 5fa901b0956e718fcf9c7955f1181608b2df84ce
4
- data.tar.gz: 3214671ef8f41b30b08ec9521f730cf402233961
3
+ metadata.gz: 6f72320b28b9901449334c25d24b746db58fd323
4
+ data.tar.gz: 8df7ac5b2832242c59a2974f0ff89d24e233960d
5
5
  SHA512:
6
- metadata.gz: af203a0d11eb4fea0a3109ce85a5180b9a2ca77b8886c6c82d050914db009ab5c25d921688d5f1edbb5faad378bab241e8d33cd224604198c778bc0d396f190a
7
- data.tar.gz: 1fedff55f983f5158fb19daf1e33d954e515f31dc72adc3ef99caf146dae3da768b1c7e5d9037f7ed5ab665043e3ac79579ed9fdd11bbf06f61846e6cf67931e
6
+ metadata.gz: cc892e3c8242f90dce6e5becec0a06454bcc91dfb5712cb511a199f12beac2df19f4c8687d28293a24f058eea73be2f6f81405add1e228c9a10c5adead4f5700
7
+ data.tar.gz: 49f13f981fb0dab697131810dc8dc510ad51010e42ea9994f75fb8d27676712c8ff0a251b62a5bcbd6a0f68492b4142ac9bd3103842f6e0583be029e5b6e0e1b
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module S3Archive
3
- VERSION = "0.4.4"
3
+ VERSION = "0.4.5"
4
4
  end
5
5
  end
@@ -80,8 +80,11 @@ module Capistrano
80
80
  class MissingSSHKyesError < StandardError; end
81
81
  class ResourceBusyError < StandardError; end
82
82
 
83
- def check
83
+ def local_check
84
84
  list_objects(false)
85
+ end
86
+
87
+ def check
85
88
  return if context.class == SSHKit::Backend::Local
86
89
  ssh_key = ssh_key_for(context.host)
87
90
  if ssh_key.nil?
@@ -6,6 +6,9 @@ namespace :s3_archive do
6
6
 
7
7
  desc 'Check that the S3 buckets are reachable'
8
8
  task :check do
9
+ run_locally do
10
+ strategy.local_check
11
+ end
9
12
  on release_roles :all do
10
13
  strategy.check
11
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-s3_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takuto Komazaki