s3cp 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -1
- data/lib/s3cp/s3cat.rb +1 -1
- data/lib/s3cp/s3cp.rb +1 -1
- data/lib/s3cp/version.rb +1 -1
- metadata +3 -3
data/History.txt
CHANGED
data/lib/s3cp/s3cat.rb
CHANGED
@@ -51,7 +51,7 @@ fail "Your URL looks funny, doesn't it?" unless @bucket
|
|
51
51
|
if options[:tty]
|
52
52
|
# store contents to file to display with PAGER
|
53
53
|
file = Tempfile.new('s3cat')
|
54
|
-
out = File.new(file.path,
|
54
|
+
out = File.new(file.path, "wb")
|
55
55
|
begin
|
56
56
|
@s3.get(@bucket, @prefix) do |chunk|
|
57
57
|
out.write(chunk)
|
data/lib/s3cp/s3cp.rb
CHANGED
@@ -160,7 +160,7 @@ end
|
|
160
160
|
|
161
161
|
def s3_to_local(bucket_from, key_from, dest)
|
162
162
|
log("Copy s3://#{bucket_from}/#{key_from} to #{dest}")
|
163
|
-
f = File.new(dest,
|
163
|
+
f = File.new(dest, "wb")
|
164
164
|
begin
|
165
165
|
@s3.interface.get(bucket_from, key_from) do |chunk|
|
166
166
|
f.write(chunk)
|
data/lib/s3cp/version.rb
CHANGED
metadata
CHANGED