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 +4 -4
- data/lib/capistrano/s3_archive/version.rb +1 -1
- data/lib/capistrano/s3_archive.rb +3 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbb8ac4ef17a2d5f929a0efb027aad17c7e44790
|
4
|
+
data.tar.gz: 099ba5e45ea14ef7ea1306ab7e953b2817b8f032
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c590bcb06845ded9939f19123dbb67d9c264fa030d6e6f36b479293e0b178b470d1746455a887c41666d62617f59c56e56a8095db83a42b994f0efe48388031e
|
7
|
+
data.tar.gz: 2780597ad293784dc7052fd42e0f9e56ecee02a58e62fa737a0ebe07f3796ad9105008de086a2250a4ea634a1e33c7eb4ceab40212244e0a0712f9c7553680e4
|
@@ -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
|
-
|
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
|
+
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-
|
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.
|