aws3upload 0.0.3 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/aws3upload +1 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8693e820060909b497dedde0e823882e9098ed0b
|
4
|
+
data.tar.gz: 66fa2810cdd0b11dda672a99691144bc661eed8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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)
|