capistrano-s3_archive 0.3.4 → 0.3.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: ff7aa63f69e0331804503575b7a0f22ae530e769
4
- data.tar.gz: 378dc767657fbaf94fcc9d3614b63c5de742442a
3
+ metadata.gz: fbb8ac4ef17a2d5f929a0efb027aad17c7e44790
4
+ data.tar.gz: 099ba5e45ea14ef7ea1306ab7e953b2817b8f032
5
5
  SHA512:
6
- metadata.gz: 4d28fb64ce1f708b1282e7a8b50461bddc6a26249704cb1609b5f49db0d9120b26deaa8ac07ec369d1ab35e1df7d1d23bb910a67d67ddc0b1a2ae91bbd751c52
7
- data.tar.gz: d59244e38ad90d614ce90f5f9bc3bc3c04bc6913e8076f886df1bc881bb0f0cfb9ea543e11fd52119904d72f3156c61edb864a4cf9f3ee54e33b6a849f00304d
6
+ metadata.gz: c590bcb06845ded9939f19123dbb67d9c264fa030d6e6f36b479293e0b178b470d1746455a887c41666d62617f59c56e56a8095db83a42b994f0efe48388031e
7
+ data.tar.gz: 2780597ad293784dc7052fd42e0f9e56ecee02a58e62fa737a0ebe07f3796ad9105008de086a2250a4ea634a1e33c7eb4ceab40212244e0a0712f9c7553680e4
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module S3Archive
3
- VERSION = "0.3.4"
3
+ VERSION = "0.3.5"
4
4
  end
5
5
  end
@@ -24,8 +24,8 @@ module Capistrano
24
24
  set :local_cache_dir, "#{fetch(:local_cache)}/#{fetch(:stage)}"
25
25
  end
26
26
 
27
- def get_object
28
- s3_client.get_object(bucket: bucket, key: archive_object_key)
27
+ def get_object(target)
28
+ s3_client.get_object({ bucket: bucket, key: archive_object_key }, target: target)
29
29
  end
30
30
 
31
31
  def list_objects(all_page = true)
@@ -85,8 +85,7 @@ module Capistrano
85
85
  if not File.exist?(archive_file)
86
86
  mkdir_p(File.dirname(archive_file))
87
87
  File.open(tmp_file, 'w') do |f|
88
- content = get_object.body.read
89
- f.write(content)
88
+ get_object(f)
90
89
  end
91
90
  move(tmp_file, archive_file)
92
91
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-s3_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takuto Komazaki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-27 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.4.5
112
+ rubygems_version: 2.4.5.1
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Capistrano deployment from an archive on Amazon S3.