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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d36770e6a67a73cc2c89d6b29e5fd7486324f8a
4
- data.tar.gz: 6c1a1c1e25e039d3de3e3717d52e938015d12f09
3
+ metadata.gz: 12c5e0eb316fa6e13678691635ad864758881e5b
4
+ data.tar.gz: 19dacc12c00f0e780b2e5be766d26712c0b6d5d6
5
5
  SHA512:
6
- metadata.gz: 5ad2f53ac6b2914d99310dc48a21aba208dafaa036ccc2a72283bfe025347d2ffc68681588ac1d6171268d214d687292bb3cf2d588a2bab8496d2a0f87a153be
7
- data.tar.gz: a255cf63c6e5d12da67583c1c15f0ecfed70673374baf0d74c279e2c69665c91b5ed6184541d9df64dc54869720876d900302a4527d286b78803e1c9f509fdc0
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} #{path}")
27
+ logger.info("download #{path} from s3 #{bucket} #{filename}")
28
28
  FileUtils.rm path, force: true
29
- client.get_object({bucket: bucket, key: path.to_s}, target: path)
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} #{path}")
38
- object = resource.bucket(bucket).object(path.to_s)
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
@@ -1,3 +1,3 @@
1
1
  module Brillo
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brillo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Bessey