fastlane-plugin-s3_actions 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2935f43bfa905c69a10b67251a61a563aee7b2e
|
4
|
+
data.tar.gz: 3fd64a6317661c607eef8291d2a85f3355d1bff4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a07bf21b3c4ef7ae4c9033416e1acc6c5275d9defab8495f2d0200ca946019dc927b3e1cd765e176e7063a8a30d2e241bf3b04c7545f59dbe6bf6679bed6d1b6
|
7
|
+
data.tar.gz: dafc441d97fab3c45ef42848ad8ffe5fcd6349997a50cbef1aa280af58101f4945a49c7b88473d1edf84d127df1e805edeb445b1bdab0b1731f5e6d27cf2b72a
|
@@ -13,6 +13,11 @@ module Fastlane
|
|
13
13
|
file_name = params[:file_name]
|
14
14
|
output_path = params[:output_path]
|
15
15
|
|
16
|
+
output_directory = File.dirname(output_path)
|
17
|
+
unless File.exists?(output_directory)
|
18
|
+
Actions.sh("mkdir #{output_directory}", log: $verbose)
|
19
|
+
end
|
20
|
+
|
16
21
|
bucket = service.buckets.find(bucket_name)
|
17
22
|
if bucket.nil?
|
18
23
|
UI.user_error! "Bucket '#{bucket_name}' not found, please verify bucket and credentials 🚫"
|
@@ -15,7 +15,7 @@ module Fastlane
|
|
15
15
|
UI.user_error! "Bucket '#{bucket_name}' not found, please verify bucket and credentials 🚫"
|
16
16
|
end
|
17
17
|
|
18
|
-
file_name = params[:name] || params[:content_path]
|
18
|
+
file_name = params[:name] || File.basename(params[:content_path])
|
19
19
|
|
20
20
|
object = bucket.objects.build(file_name)
|
21
21
|
object.content = open(params[:content_path])
|