fastlane-plugin-deploy_aws_s3_cloudfront 0.2.0 → 0.3.0
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: 929bf6275e265d2b534b43a466839e3c25d2ec7c
|
4
|
+
data.tar.gz: 707870aebec51d4ae80787b901e334caec96ad63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2af86f57e4296732d7323a72a0ddc9085544bf83be60d8e4afa55425fca4e2ebec992f5c2e282740752dd4125e09a35f59179de035f897d7a7cb8c6bcda6aab
|
7
|
+
data.tar.gz: e9d9020693d53d22c187dd7235da1f9c049be254a398387936e47d569394da78575087521178b41af53ec7e3182d87be2ca44c93d6cd7ef6519904f811e15c95
|
data/lib/fastlane/plugin/deploy_aws_s3_cloudfront/actions/deploy_aws_s3_cloudfront_action.rb
CHANGED
@@ -17,11 +17,11 @@ module Fastlane
|
|
17
17
|
|
18
18
|
files = get_files_from_source(source)
|
19
19
|
|
20
|
-
paths = files.map {
|
20
|
+
paths = files.map {|file|
|
21
21
|
key = file.relative_path_from(Pathname(source)).to_s
|
22
22
|
content_type = get_content_type(file)
|
23
23
|
s3client.put_object({body: file.open("rb"), bucket: bucket, key: key.to_s, content_type: content_type})
|
24
|
-
|
24
|
+
"/" + key
|
25
25
|
}
|
26
26
|
|
27
27
|
cloudfront = Aws::CloudFront::Client.new
|