capistrano-net_storage-s3 0.2.0 → 0.2.1

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: 0333b3c27bc12d2efe91107c6e97572bfa2f60e8
4
- data.tar.gz: 2c58481cb021d63e7dfc41378ba59ede934717f3
3
+ metadata.gz: 14610afab4d9f5c54d0952bad4f26306ab1eabe4
4
+ data.tar.gz: 09d631a5add4f5a5e79c1ed20713e35a2bb9c32f
5
5
  SHA512:
6
- metadata.gz: e1587ffac5828fd71d58c08e798548dbeec8aad0cfd185e6154cd97733341510691c7157a713cc368537ac606924fb920773ee33efc34b867c38d14e78472cf1
7
- data.tar.gz: 3b71b8431885200a19913d4271738c6ffb502a4f412f5052a3e785d9b6f648d032acb1cd3c9d1da47d52043bf8c8e51b9b9ca488a8290ffaa0b43884be91ab93
6
+ metadata.gz: 8e38f578854a6fe47190e05298c6ee9f66a3184710e591d0ccbfdf80e3cf6fa5caa32fb751a7c7ad3bfc90c86f80d68f7c9976f20da1d8c014e08b3e348bd6e7
7
+ data.tar.gz: a7bb8332a0322eb50e39717e49c94da05f4a892a2bc471f8311c7c041b567a4407ad06469c7cfbc2452588bbea9664918fb0d185ac4809d2f07c213ab6cac238
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.2.1 (2017/4/21)
2
+
3
+ Internal Changes (#2):
4
+
5
+ - `Capistrano::NetStorage::S3::Broker::AwsCli` :
6
+ - Use `run_locally` instead of `on :local`
7
+ - Trap `SSHKit::StandardError` when finding an archive fails
8
+
1
9
  ## 0.2.0 (2017/4/12)
2
10
 
3
11
  Initial release.
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Gem Version](https://badge.fury.io/rb/capistrano-net_storage-s3.svg)](https://badge.fury.io/rb/capistrano-net_storage-s3)
2
+ [![Build Status](https://travis-ci.org/DeNADev/capistrano-net_storage-s3.svg?branch=master)](https://travis-ci.org/DeNADev/capistrano-net_storage-s3)
1
3
  # Capistrano::NetStorage::S3
2
4
 
3
5
  **Capistrano::NetStorage::S3** is a transport plugin of
@@ -12,10 +12,10 @@ class Capistrano::NetStorage::S3::Broker::AwsCLI < Capistrano::NetStorage::S3::B
12
12
  if capture_aws_s3('ls', config.archive_url)
13
13
  set :net_storage_uploaded_archive, true
14
14
  end
15
- rescue SSHKit::Runner::ExecuteError
15
+ rescue SSHKit::StandardError
16
16
  c = config
17
- on :local do
18
- info "Archive is not found on #{c.archive_url}"
17
+ run_locally do
18
+ info "Archive is not found as #{c.archive_url}"
19
19
  end
20
20
  end
21
21
 
@@ -45,7 +45,7 @@ class Capistrano::NetStorage::S3::Broker::AwsCLI < Capistrano::NetStorage::S3::B
45
45
 
46
46
  def execute_aws_s3(cmd, *args)
47
47
  c = config
48
- on :local do
48
+ run_locally do
49
49
  with(c.aws_environments) do
50
50
  execute :aws, 's3', cmd, *args
51
51
  end
@@ -54,7 +54,7 @@ class Capistrano::NetStorage::S3::Broker::AwsCLI < Capistrano::NetStorage::S3::B
54
54
 
55
55
  def capture_aws_s3(cmd, *args)
56
56
  c = config
57
- on :local do
57
+ run_locally do
58
58
  with(c.aws_environments) do
59
59
  capture :aws, 's3', cmd, *args
60
60
  end
@@ -1,5 +1,5 @@
1
1
  require 'capistrano/net_storage/s3/base'
2
2
 
3
3
  class Capistrano::NetStorage::S3
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-net_storage-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - progrhyme
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-12 00:00:00.000000000 Z
11
+ date: 2017-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano-net_storage