aws3upload 0.0.3 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/aws3upload +1 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76743528d95c47b9c665880babfdb815f1bf6ae4
4
- data.tar.gz: eb167c8f2fe324148e2056dcb38c69d62d4ab243
3
+ metadata.gz: 8693e820060909b497dedde0e823882e9098ed0b
4
+ data.tar.gz: 66fa2810cdd0b11dda672a99691144bc661eed8a
5
5
  SHA512:
6
- metadata.gz: 543074ab082a6541293b3821f6035a4c002a3c250e71d046f207a25f374207bf3eb57847020e34e1264db798be4f5e90bf76e1e5280aea27085c88e4ba8e6f66
7
- data.tar.gz: c4b3e5cc57533ffb3fe3fc4fb6bdf9589ed1e2aec0718c6fe8dedc76ccd7ead1c8bace264b932cb116fa83a532a9d0fbb9a0eb165ccc01fb87b9ab72395ef97a
6
+ metadata.gz: 78ca2d5a6321377931ce8740ce116ddb6d2eb1758faab4e3b309d32b0b86093313f9b172443a681267ce3aede24981bfab3d2835292001de05d26391d764be47
7
+ data.tar.gz: f352dd43a23ffb3b360560bafedd825c7c7e3fa7c2beecc426be9f4693b1fb0725e08c0f2cf75a81ef0659064aaf3248acbb6b9060ffd39f7af56fd8f172db72
data/bin/aws3upload CHANGED
@@ -7,11 +7,7 @@ target = ARGV[1]
7
7
 
8
8
  puts "Copy #{source} to #{bucket}:::#{target}"
9
9
 
10
- Aws.config.update({
11
- credentials: Aws::Credentials.new(access_id, secret_key)
12
- })
13
- s3 = Aws::S3::Resource.new(region: region)
14
-
10
+ s3 = Aws::S3::Resource.new
15
11
  name = File.basename(source)
16
12
  obj = s3.bucket(bucket).object(target)
17
13
  obj.upload_file(source)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws3upload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Shmelev