s3cp 1.1.30 → 1.1.31
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/lib/s3cp/s3cp.rb +2 -2
- data/lib/s3cp/s3stat.rb +1 -1
- data/lib/s3cp/s3up.rb +1 -1
- data/lib/s3cp/version.rb +1 -1
- metadata +4 -4
data/History.txt
CHANGED
data/lib/s3cp/s3cp.rb
CHANGED
@@ -261,7 +261,7 @@ def s3_to_s3(bucket_from, key, bucket_to, dest, options = {})
|
|
261
261
|
s3_dest = @s3.buckets[bucket_to].objects[dest]
|
262
262
|
s3_options = {}
|
263
263
|
S3CP.set_header_options(s3_options, @headers)
|
264
|
-
s3_options[:acl] = options[:acl]
|
264
|
+
s3_options[:acl] = options[:acl] if options[:acl]
|
265
265
|
unless options[:move]
|
266
266
|
s3_source.copy_to(s3_dest, s3_options)
|
267
267
|
else
|
@@ -306,7 +306,7 @@ def local_to_s3(bucket_to, key, file, options = {})
|
|
306
306
|
|
307
307
|
s3_options = {}
|
308
308
|
S3CP.set_header_options(s3_options, @headers)
|
309
|
-
s3_options[:acl] = options[:acl]
|
309
|
+
s3_options[:acl] = options[:acl] if options[:acl]
|
310
310
|
s3_options[:content_length] = File.size(file)
|
311
311
|
|
312
312
|
multipart_threshold = options[:multipart].is_a?(Fixnum) ? options[:multipart] : AWS.config.s3_multipart_threshold
|
data/lib/s3cp/s3stat.rb
CHANGED
@@ -45,7 +45,7 @@ permission = ARGV.last
|
|
45
45
|
@bucket, @key = S3CP.bucket_and_key(source)
|
46
46
|
fail "Your URL looks funny, doesn't it?" unless @bucket
|
47
47
|
|
48
|
-
S3CP.standard_exception_handling(options) do
|
48
|
+
S3CP.standard_exception_handling(@options) do
|
49
49
|
S3CP.load_config()
|
50
50
|
|
51
51
|
@s3 = S3CP.connect().buckets[@bucket]
|
data/lib/s3cp/s3up.rb
CHANGED
@@ -90,7 +90,7 @@ S3CP.standard_exception_handling(options) do
|
|
90
90
|
begin
|
91
91
|
s3_options = {}
|
92
92
|
S3CP.set_header_options(s3_options, @headers)
|
93
|
-
s3_options[:acl] = options[:acl]
|
93
|
+
s3_options[:acl] = options[:acl] if options[:acl]
|
94
94
|
@s3.buckets[bucket].objects[key].write(temp, s3_options)
|
95
95
|
$stderr.puts "s3://#{bucket}/#{key} => #{S3CP.format_filesize(temp.size)} "
|
96
96
|
ensure
|
data/lib/s3cp/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3cp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 45
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 31
|
10
|
+
version: 1.1.31
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Boisvert
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-05-
|
18
|
+
date: 2013-05-16 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|