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.
- checksums.yaml +4 -4
- data/lib/minimal_pipeline/s3.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc2a7f41f2462587d5f64259e8cbd42fa78e3c26ef68081e01c053e67b04da41
|
4
|
+
data.tar.gz: 89d619b70b2e0ae7e6f6d828a67b2d131603320b252dfe2e1013cdb457944645
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35186390dd325b24ac039503ab87e29bb8aa606f3ddb87adfd3fa087143e59e542b3aaf5e04f11853a9431742329b0c9c4d70982a789104f3a87f1f0422e67d9
|
7
|
+
data.tar.gz: 4e62e3fe54370d89862c567d303cc45c3e43d8066c7f896ccf1b8d1be259d7436f4d4317e222b180382f0596a3d4643d31020f0d4bbfd6983edc6d3a9ad2ea17
|
data/lib/minimal_pipeline/s3.rb
CHANGED
@@ -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.
|
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.
|
52
|
+
object.upload_file(file)
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|