fastlane-plugin-aws_s3 0.2.4 → 0.2.5

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: 34762e703a271a5a7c6bb83c46cf4ff573022361
4
- data.tar.gz: f5f73379b195b3e0a6092f5cc0e821330056e191
3
+ metadata.gz: 792c2fd59fa5dc0480f690bed188dd7814825adb
4
+ data.tar.gz: e1f1c9e5c5334aea52f9b7f477d9c54a4668d4eb
5
5
  SHA512:
6
- metadata.gz: 8e1f1776a28b17c3f959f384c745d1b1aa5c6795e46b3cd2e1c77e7ae8831fa44a0a702e687d773f6382a3238d8d1422a102afee1bef9ba908786b76f48019b1
7
- data.tar.gz: bf4674db918fd75567b69d6910ca7e78f7da7e19af8e7ad37febbb10f70bebc3cefe59f1e8e787df0e57ac4a4516a029c619a67e0d0612a1e5ef27c85a6b8d46
6
+ metadata.gz: 1106223561a29f1c2243b3e62506550f27eab456279b5d04234007e838bf76710779433490223e748aae0c48701739f3d4e75140ed4f1ff5d4295f3e50a2ee3f
7
+ data.tar.gz: 811a702b78f6554c16df73c611cff1cdd096401b4d3a6c1fb57a764d341d4148687d34763c7716383972d088779786a3dcd604ea97e399496306cb434f123b6b
data/README.md CHANGED
@@ -37,11 +37,12 @@ aws_s3(
37
37
  bucket: ENV['S3_BUCKET'], # Required from user.
38
38
  region: ENV['S3_REGION'], # Required from user.
39
39
 
40
+ endpoint: 'https://s3-us-west-1.amazonaws.com', # Optional, for buckets that require a specific endpoint
40
41
  ipa: 'AppName.ipa', # Required (if not uploading an APK).
41
42
  dsym: 'AppName.app.dSYM.zip', # Optional is you use `ipa` to build.
42
43
 
43
44
  apk: 'AppName.apk', # Required (if not uploading an IPA).
44
-
45
+
45
46
  app_directory: 'ios_or_android', # Optional but nice if you want to put multiple apps in same bucket
46
47
 
47
48
  path: 'v{CFBundleShortVersionString}_b{CFBundleVersion}/', # This is actually the default.
@@ -25,6 +25,7 @@ module Fastlane
25
25
  params[:access_key] = config[:access_key]
26
26
  params[:secret_access_key] = config[:secret_access_key]
27
27
  params[:bucket] = config[:bucket]
28
+ params[:endpoint] = config[:endpoint]
28
29
  params[:region] = config[:region]
29
30
  params[:app_directory] = config[:app_directory]
30
31
  params[:acl] = config[:acl]
@@ -43,6 +44,7 @@ module Fastlane
43
44
  s3_access_key = params[:access_key]
44
45
  s3_secret_access_key = params[:secret_access_key]
45
46
  s3_bucket = params[:bucket]
47
+ s3_endpoint = params[:endpoint]
46
48
  apk_file = params[:apk]
47
49
  ipa_file = params[:ipa]
48
50
  dsym_file = params[:dsym]
@@ -61,7 +63,11 @@ module Fastlane
61
63
  credentials: Aws::Credentials.new(s3_access_key, s3_secret_access_key)
62
64
  })
63
65
 
64
- s3_client = Aws::S3::Client.new
66
+ s3_client = if s3_endpoint
67
+ Aws::S3::Client.new(endpoint: s3_endpoint)
68
+ else
69
+ Aws::S3::Client.new
70
+ end
65
71
 
66
72
  upload_ipa(s3_client, params, s3_region, s3_access_key, s3_secret_access_key, s3_bucket, ipa_file, dsym_file, s3_path, acl) if ipa_file.to_s.length > 0
67
73
  upload_apk(s3_client, params, s3_region, s3_access_key, s3_secret_access_key, s3_bucket, apk_file, s3_path, acl) if apk_file.to_s.length > 0
@@ -477,7 +483,13 @@ module Fastlane
477
483
  description: "Uploaded object permissions e.g public_read (default), private, public_read_write, authenticated_read ",
478
484
  optional: true,
479
485
  default_value: "public-read"
480
- )
486
+ ),
487
+ FastlaneCore::ConfigItem.new(key: :endpoint,
488
+ env_name: "S3_ENDPOINT",
489
+ description: "The base endpoint for your S3 bucket",
490
+ optional: true,
491
+ default_value: nil
492
+ ),
481
493
  ]
482
494
  end
483
495
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AwsS3
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-aws_s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Holtz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-10 00:00:00.000000000 Z
11
+ date: 2017-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk