brillo 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/brillo/transferrer/s3.rb +4 -4
- data/lib/brillo/version.rb +1 -1
- 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: 12c5e0eb316fa6e13678691635ad864758881e5b
|
4
|
+
data.tar.gz: 19dacc12c00f0e780b2e5be766d26712c0b6d5d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6023d8f6eccd9b5882be5aab400a93d4216347b68cdc413078c7abf9249ad89e67f5c581718dfe37e9941ffb77f41518633de63c0e445f019585452ef038400c
|
7
|
+
data.tar.gz: b3045e4eb617fbb8c6b1114e07f52d2c4eb761100c784283f250e1c29b24f4d8802e2c817cd562ecfad5bdc6343e9a61624df1b472cdb57496aaa983e360d43d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 1.1.3
|
4
|
+
Fix bug in S3 upload path. Files were previously uploading to their local system path in S3. I.e. `bucket-name/my/rails/app/tmp/my-app-scrubbed.dmp.gz`.
|
5
|
+
|
3
6
|
## 1.1.2
|
4
7
|
Set us-east-1 as the default region, because this is S3s default and can be accessed from other regions.
|
5
8
|
|
@@ -24,9 +24,9 @@ module Brillo
|
|
24
24
|
|
25
25
|
def download
|
26
26
|
return unless enabled
|
27
|
-
logger.info("download from s3 #{bucket} #{
|
27
|
+
logger.info("download #{path} from s3 #{bucket} #{filename}")
|
28
28
|
FileUtils.rm path, force: true
|
29
|
-
client.get_object({bucket: bucket, key:
|
29
|
+
client.get_object({bucket: bucket, key: filename}, target: path)
|
30
30
|
rescue Aws::S3::Errors::NoSuchBucket
|
31
31
|
create_bucket
|
32
32
|
retry
|
@@ -34,8 +34,8 @@ module Brillo
|
|
34
34
|
|
35
35
|
def upload
|
36
36
|
return unless enabled
|
37
|
-
logger.info("uploading to s3 #{bucket} #{
|
38
|
-
object = resource.bucket(bucket).object(
|
37
|
+
logger.info("uploading #{path} to s3 #{bucket} #{filename}")
|
38
|
+
object = resource.bucket(bucket).object(filename)
|
39
39
|
object.upload_file(path)
|
40
40
|
rescue Aws::S3::Errors::NoSuchBucket
|
41
41
|
create_bucket
|
data/lib/brillo/version.rb
CHANGED