fastlane-craft 1.3.11 → 1.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane-craft/upload_to_s3.rb +11 -3
- data/lib/fastlane-craft/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a13d62bf4fee480fe78f82f5a0d88f0b685484664c0cf85dbc082f24195e0ac7
|
4
|
+
data.tar.gz: 551771c35fe06844732d67093a230be58a8fb4c34cc5d63e35a7cb32810ffb4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88deeb14e73b8059d8cb70625b07bf9e9d291a1561990a2ea7e75b518c0d5336dee1de83368056d7b11c1e8da910ca1ed3bbb2565010d5ab29bb328172c90769
|
7
|
+
data.tar.gz: 6d214419072c624de3cf33977d8eed6aed38646d051df447e56efc0440c633c6828423d3f95ba67714fe228577a1d45dbb7111df74ae0d2e478b6c59d667dc9b
|
@@ -24,6 +24,7 @@ module Fastlane
|
|
24
24
|
)
|
25
25
|
|
26
26
|
UI.message "Check whether destination bucket #{bucket} exists..💤"
|
27
|
+
|
27
28
|
begin
|
28
29
|
response = client.create_bucket({
|
29
30
|
bucket: bucket,
|
@@ -35,6 +36,7 @@ module Fastlane
|
|
35
36
|
end
|
36
37
|
|
37
38
|
UI.message "Going to upload file to s3..💤"
|
39
|
+
|
38
40
|
File.open(local_path, 'r') do |body|
|
39
41
|
response = client.put_object(
|
40
42
|
acl: acl,
|
@@ -43,10 +45,16 @@ module Fastlane
|
|
43
45
|
body: body
|
44
46
|
)
|
45
47
|
|
46
|
-
|
47
|
-
|
48
|
+
object = Aws::S3::Object.new(
|
49
|
+
key: file_path,
|
50
|
+
bucket_name: bucket,
|
51
|
+
client: client
|
52
|
+
)
|
53
|
+
|
54
|
+
url = object.public_url
|
48
55
|
|
49
|
-
UI.message "✨ file uploaded to #{
|
56
|
+
UI.message "✨ file uploaded to #{url} ✨"
|
57
|
+
ENV[SharedValues::UPLOADED_S3_URL] = url
|
50
58
|
end
|
51
59
|
end
|
52
60
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-craft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sroik
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-12-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fastlane
|