Un bork mini s3 putter
This commit is contained in:
parent
b124560fd6
commit
9889d8710b
@ -11,6 +11,7 @@ class MiniS3put
|
||||
Aws::S3::Resource.new.bucket(bucket).object(key).put(
|
||||
body: instream.read
|
||||
).on_success(&method(:on_put_success))
|
||||
0
|
||||
end
|
||||
|
||||
def on_put_success(response)
|
||||
@ -21,8 +22,6 @@ class MiniS3put
|
||||
).on_success do |acl_response|
|
||||
puts acl_response.data
|
||||
end
|
||||
|
||||
0
|
||||
end
|
||||
|
||||
private
|
||||
@ -30,4 +29,4 @@ class MiniS3put
|
||||
attr_reader :bucket, :key, :instream
|
||||
end
|
||||
|
||||
exit(MiniS3put.new(ARGV.first).put) if $PROGRAM_NAME == __FILE__
|
||||
exit(MiniS3put.new(key: ARGV.first).put) if $PROGRAM_NAME == __FILE__
|
||||
|
Loading…
Reference in New Issue
Block a user