dpl 1.7.13.travis.837.4 → 1.7.13.travis.839.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzFhNWU1ZTVjMWFmZDhlZjIyOTMyMGEwNTRiOTA3ZjI4NGM2ODhjMA==
4
+ YmZiNDI3Yzk4YTgwOGNiNDUxNjI0MDBhZDUwNmMxNzI1NjE0ZDYxNw==
5
5
  data.tar.gz: !binary |-
6
- OTgwOWE3OTA5N2Q4ODNiZTE0ZjVmY2I5OGJmY2Q0Mzc0Mzg4MzFmNA==
6
+ OTdiZjk2MjhhYzc3YjViOTJlZDI4OTkzYjdlNWVkM2U3MzE3NTYzMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzU5ODFjMzExODE3NTZhNGIxMmI4Mjk1ODcxOGI3MDVjYTg2ZGMyZTIzMzky
10
- MzFhZTIxOGFkYTJjYmVjOWIyZGU2MTJlZTBlM2Y5YTc0NTViYzBhNjFkZmRm
11
- MGRiMGY5NGQxNGFhYzkxMWViZTlmZTQzYTlmMGJhODEyYmM0ZjQ=
9
+ ZTU2Nzg2NDdhZjBkOTZlODdlZTc5NjIwNmJiNWQ3NzY1Y2Q5ZmI4NmYyM2Nj
10
+ ZmVlMmQzYjYxZGM3NDBmZGZmY2Y0NzU4YjgzMjhiNmQ1ZDg4ODVhMDI2ZGJh
11
+ NjVkYTY4NmE0MmI5NTkzMDdhNGM1YzQwZTgzNGM3OWIyNzU0M2Q=
12
12
  data.tar.gz: !binary |-
13
- MDQ2MDNiZDU3MDg1MDExMGFkMzQ2NWZmZmU3YTQ2ZDRlYWRkZDc0OTI4ZGNh
14
- MTIwN2EwNmU0OGQwZjAzMzdlNjdiYWRmNzA1ZjA3OGYxMDc3YjdmODQxMTMz
15
- ZGQxM2VlNmZkYjRkZWIxYTg0M2I5YjQ2OWRjYWIxOGJkMmJkNTE=
13
+ YTcxNTFmYTcwNzNiNmYzODMxYjBjNDhhMDAyNTMwYzBlNzAzYmZkNDMzMzBl
14
+ MzhiOTJkM2Q3NzkxZTRiZGRkNDk1NWI1MTliYjdhOTk3YjVjMmNlZjhmODll
15
+ MmU2OTE1NWEzMGJlMmRhOWQwNTdiNjEzZjkwZmY5ZjU0NmIwZjc=
data/README.md CHANGED
@@ -212,6 +212,11 @@ As a rule of thumb, you should switch to the Git strategy if you run into issues
212
212
 
213
213
  It is possible to set file-specific `Cache-Control` and `Expires` headers using `value: file[, file]` format.
214
214
 
215
+ #### Environment variables:
216
+
217
+ * **AWS_ACCESS_KEY_ID**: AWS Access Key ID. Used if the `access-key-id` option is omitted.
218
+ * **AWS_SECRET_ACCESS_KEY**: AWS Secret Key. Used if the `secret-access-key` option is omitted.
219
+
215
220
  ##### Example:
216
221
 
217
222
  --cache_control="no-cache: index.html"
@@ -232,6 +237,12 @@ It is possible to set file-specific `Cache-Control` and `Expires` headers using
232
237
  * **app-id**: The app ID.
233
238
  * **migrate**: Migrate the database. (Default: false)
234
239
  * **wait-until-deployed**: Wait until the app is deployed and return the deployment status. (Default: false)
240
+
241
+ #### Environment variables:
242
+
243
+ * **AWS_ACCESS_KEY_ID**: AWS Access Key ID. Used if the `access-key-id` option is omitted.
244
+ * **AWS_SECRET_ACCESS_KEY**: AWS Secret Key. Used if the `secret-access-key` option is omitted.
245
+
235
246
  #### Examples:
236
247
 
237
248
  dpl --provider=opsworks --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --app-id=<app-id> --migrate --wait-until-deployed
@@ -393,6 +404,11 @@ For accounts using two factor authentication, you have to use an oauth token as
393
404
  * **bucket_name**: Bucket name to upload app to.
394
405
  * **bucket_path**: Location within Bucket to upload app to.
395
406
 
407
+ #### Environment variables:
408
+
409
+ * **AWS_ACCESS_KEY_ID**: AWS Access Key ID. Used if the `access-key-id` option is omitted.
410
+ * **AWS_SECRET_ACCESS_KEY**: AWS Secret Key. Used if the `secret-access-key` option is omitted.
411
+
396
412
  #### Examples:
397
413
 
398
414
  dpl --provider=elasticbeanstalk --access-key-id=<access-key-id> --secret-access-key="<secret-access-key>" --app="example-app-name" --env="example-app-environment" --region="us-west-2"
@@ -541,6 +557,11 @@ and your testers can start testing your app.
541
557
  * **region**: AWS Availability Zone.
542
558
  * **wait-until-deployed**: Wait until the app is deployed and return the deployment status (Optional, Default false).
543
559
 
560
+ #### Environment variables:
561
+
562
+ * **AWS_ACCESS_KEY_ID**: AWS Access Key ID. Used if the `access-key-id` option is omitted.
563
+ * **AWS_SECRET_ACCESS_KEY**: AWS Secret Key. Used if the `secret-access-key` option is omitted.
564
+
544
565
  #### Examples:
545
566
 
546
567
  dpl --provider=codedeploy --access-key-id=<aws access key> --secret_access_key=<aws secret access key> --application=<application name> --deployment_group=<deployment group> --revision_type=<s3/github> --commit_id=<commit ID> --repository=<repo name> --region=<AWS availability zone> --wait-until-deployed=<true>
@@ -12,12 +12,20 @@ module DPL
12
12
  def code_deploy_options
13
13
  code_deploy_options = {
14
14
  region: options[:region] || 'us-east-1',
15
- credentials: Aws::Credentials.new(option(:access_key_id), option(:secret_access_key))
15
+ credentials: Aws::Credentials.new(access_key_id, secret_access_key)
16
16
  }
17
17
  code_deploy_options[:endpoint] = options[:endpoint] if options[:endpoint]
18
18
  code_deploy_options
19
19
  end
20
20
 
21
+ def access_key_id
22
+ options[:access_key_id] || context.env['AWS_ACCESS_KEY_ID'] || raise(Error, "missing access_key_id")
23
+ end
24
+
25
+ def secret_access_key
26
+ options[:secret_access_key] || context.env['AWS_SECRET_ACCESS_KEY'] || raise(Error, "missing secret_access_key")
27
+ end
28
+
21
29
  def needs_key?
22
30
  false
23
31
  end
@@ -12,8 +12,16 @@ module DPL
12
12
  false
13
13
  end
14
14
 
15
+ def access_key_id
16
+ options[:access_key_id] || context.env['AWS_ACCESS_KEY_ID'] || raise(Error, "missing access_key_id")
17
+ end
18
+
19
+ def secret_access_key
20
+ options[:secret_access_key] || context.env['AWS_SECRET_ACCESS_KEY'] || raise(Error, "missing secret_access_key")
21
+ end
22
+
15
23
  def check_auth
16
- AWS.config(access_key_id: option(:access_key_id), secret_access_key: option(:secret_access_key), region: region)
24
+ AWS.config(access_key_id: access_key_id, secret_access_key: secret_access_key, region: region)
17
25
  end
18
26
 
19
27
  def check_app
@@ -22,8 +22,16 @@ module DPL
22
22
 
23
23
  end
24
24
 
25
+ def access_key_id
26
+ options[:access_key_id] || context.env['AWS_ACCESS_KEY_ID'] || raise(Error, "missing access_key_id")
27
+ end
28
+
29
+ def secret_access_key
30
+ options[:secret_access_key] || context.env['AWS_SECRET_ACCESS_KEY'] || raise(Error, "missing secret_access_key")
31
+ end
32
+
25
33
  def setup_auth
26
- AWS.config(access_key_id: option(:access_key_id), secret_access_key: option(:secret_access_key))
34
+ AWS.config(access_key_id: access_key_id, secret_access_key: secret_access_key)
27
35
  end
28
36
 
29
37
  def check_auth
@@ -18,6 +18,14 @@ module DPL
18
18
 
19
19
  end
20
20
 
21
+ def access_key_id
22
+ options[:access_key_id] || context.env['AWS_ACCESS_KEY_ID'] || raise(Error, "missing access_key_id")
23
+ end
24
+
25
+ def secret_access_key
26
+ options[:secret_access_key] || context.env['AWS_SECRET_ACCESS_KEY'] || raise(Error, "missing secret_access_key")
27
+ end
28
+
21
29
  def setup_auth
22
30
  AWS.config(:access_key_id => option(:access_key_id), :secret_access_key => option(:secret_access_key), :region => options[:region]||'us-east-1')
23
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.13.travis.837.4
4
+ version: 1.7.13.travis.839.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase