minimal_pipeline 0.0.18 → 0.0.19

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/lib/minimal_pipeline/s3.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3202aab3f6198f04339d7caed2de2b4302816e762a4d3a42e68bc9b2040a13de
4
- data.tar.gz: 81c0deea26fe260312586e008ea4890248eb3533549f2601c7800f5acf6a1718
3
+ metadata.gz: cc2a7f41f2462587d5f64259e8cbd42fa78e3c26ef68081e01c053e67b04da41
4
+ data.tar.gz: 89d619b70b2e0ae7e6f6d828a67b2d131603320b252dfe2e1013cdb457944645
5
5
  SHA512:
6
- metadata.gz: af3ab375fb0eac69a6fee08075a3f78fa23264a883f0aa93f31fafa7b7ea56b1958af43abbb56394f918b2098f44e1c8ef05e1737a214c942c3a67cb2310af41
7
- data.tar.gz: 5847c874d80fbf5c06153445e18aed2d9af7672dbccd449370bbab374dfedff08a2e42f9cf9c43cfc110ac4bbdfdeefe57f372c9a3252452fbecff444a4565c3
6
+ metadata.gz: 35186390dd325b24ac039503ab87e29bb8aa606f3ddb87adfd3fa087143e59e542b3aaf5e04f11853a9431742329b0c9c4d70982a789104f3a87f1f0422e67d9
7
+ data.tar.gz: 4e62e3fe54370d89862c567d303cc45c3e43d8066c7f896ccf1b8d1be259d7436f4d4317e222b180382f0596a3d4643d31020f0d4bbfd6983edc6d3a9ad2ea17
@@ -37,7 +37,7 @@ class MinimalPipeline
37
37
  def download(bucket_name, file, key = nil)
38
38
  key ||= File.basename(file)
39
39
  object = @s3.bucket(bucket_name).object(key)
40
- object.upload_file(file)
40
+ object.download_file(file)
41
41
  end
42
42
 
43
43
  # Uploads a file from local disk to S3
@@ -49,7 +49,7 @@ class MinimalPipeline
49
49
  def upload(bucket_name, file, key = nil)
50
50
  key ||= File.basename(file)
51
51
  object = @s3.bucket(bucket_name).object(key)
52
- object.download_file(file)
52
+ object.upload_file(file)
53
53
  end
54
54
  end
55
55
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimal_pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mayowa Aladeojebi