dpl 1.7.15.travis.857.4 → 1.7.15.travis.858.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +3 -2
- data/lib/dpl/provider/elastic_beanstalk.rb +7 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzJhMTdkZmM2YWI3NDg1YzViMWU4YjcxMmZmNDA2M2NkMjBhODE0Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjAwZjBjYTM0ZTM2ZTE3ZTY0YzZhOTk0NjI0ZmQyOWUzZGQwYjY5MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2ZjZTBkZjdiNTlmZWU3ZjA2NWM2NzA2ODE5ZWQ4NjQzY2M3NTE4Mjk4ZmFi
|
10
|
+
ZjI2NThkNTFkMDIzMGFiZGQxZmQ3MzExODU2NGViM2I0OGZmMTRlZGIzMTFj
|
11
|
+
ZTBiMDQ5MjVlZGZiOTUxZTc1NDMwNDUxZmVlOGE3YmFmNWExNzM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjY2ZTIzNjJiNWE1M2U2MWViM2NjMDIxMWFiMTg2ZmQ4MTEzOTQ1MGFiYWZh
|
14
|
+
M2JlNjFlNGYzYmIyM2YwMjc4MThiZjNmZjYyYTFmNGQxMTNmZGYzY2I5MGQx
|
15
|
+
N2ZmYWEwNzg2N2E4OTg5NzJkYTM2ZDY1MTMxYjM3NjRjYTE3NjE=
|
data/README.md
CHANGED
@@ -499,8 +499,9 @@ For accounts using two factor authentication, you have to use an oauth token as
|
|
499
499
|
|
500
500
|
#### Environment variables:
|
501
501
|
|
502
|
-
* **
|
503
|
-
* **
|
502
|
+
* **ELASTIC_BEANSTALK_ENV**: Elastic Beanstalk environment name which will be updated. Is only used if `env` option is omitted.
|
503
|
+
* **ELASTIC_BEANSTALK_VERSION**: Label name of the new version.
|
504
|
+
* **ELASTIC_BEANSTALK_DESCRIPTION**: Description of the new version. Defaults to the last commit message.
|
504
505
|
|
505
506
|
#### Examples:
|
506
507
|
|
@@ -49,11 +49,15 @@ module DPL
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def env_name
|
52
|
-
|
52
|
+
options[:env] || context.env['ELASTIC_BEANSTALK_ENV'] || raise(Error, "missing env")
|
53
53
|
end
|
54
54
|
|
55
55
|
def version_label
|
56
|
-
"travis-#{sha}-#{Time.now.to_i}"
|
56
|
+
context.env['ELASTIC_BEANSTALK_LABEL'] || "travis-#{sha}-#{Time.now.to_i}"
|
57
|
+
end
|
58
|
+
|
59
|
+
def version_description
|
60
|
+
context.env['ELASTIC_BEANSTALK_DESCRIPTION'] || commit_msg
|
57
61
|
end
|
58
62
|
|
59
63
|
def archive_name
|
@@ -114,7 +118,7 @@ module DPL
|
|
114
118
|
|
115
119
|
def create_app_version(s3_object)
|
116
120
|
# Elastic Beanstalk doesn't support descriptions longer than 200 characters
|
117
|
-
description =
|
121
|
+
description = version_description[0, 200]
|
118
122
|
options = {
|
119
123
|
:application_name => app_name,
|
120
124
|
:version_label => version_label,
|