dpl 1.7.12.travis.766.4 → 1.7.12.travis.773.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
- ZDdhZDA4ODIwYzQ2MGZmZDUyYmQwZDFlMmUwNDRjZGRjZWYzNjZjZA==
4
+ YjQ1NmZiMDZmOTY2ZThjYWJlNWFiYzhiMjc1NDY0OTI0YWYwODI1Mg==
5
5
  data.tar.gz: !binary |-
6
- YzAwMDhmNThhZjU0ZTRjZTkzODc3Mjc2NWMzMzhiNDgxYzBmOTA2YQ==
6
+ YjNhZDU5NTI3MjY3NjBmZjk2ZjhjN2I5MzdiYWZiY2Q5M2JkZTRiOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Mzk0YzUzYzU3MGQwOGQ4NGNlNjZhNjgyNGFkOTM5NjQ2NDg2Zjg0MTU0MDM4
10
- MTJlNTliMTg5MzAxNDMyNTdmZmZkOTk1MzEyMTFkMWYyZDE0YTc0NDkzYzk0
11
- YzJjNWFmNGRmZmIwNTY2NDJkZmM0OTA3ZGE3YThjYTc4MzU1ZmE=
9
+ YTlkNzAxNjVjYTc0MzA5OWIyNmE0Yjg3Y2M3NmM2YTNkNGM2NjMwMzI3Njhh
10
+ NzQ5YmZkNzQ4YWI4ZWQzNDI2NjhmM2JhNmE3OTliYWJhYTU5YTY0NzZhNTQz
11
+ N2U4NjA1YzA0OGFiMGRhZWQ0MzdkNjg4MTBhMzg2OGFiZjgwYzU=
12
12
  data.tar.gz: !binary |-
13
- YTNhMDAwNGRiZWE1ODNiNjkwNjU2NGE1NDJiZmJjMzZhNTEyZWQ1ODNhNWIz
14
- NjNkN2UyMGRiZDE0NDRmYWMxYWZjZmI1ZjA4YTg4ODNlNTg3MGY1NWExMGEw
15
- NzVlNTExMzk0OTMwNjNkNjc0MzViYmEwMjQ5NGUxZmFjNTQyM2U=
13
+ ZmZhZWJiMDFhNzcyOGYwMWE3NTAzODgyMDRmZjBlNGI1MWUzOGU2ZWU3NWFk
14
+ NzBjYmM1OTc5Y2RlYTYxYmZjOTJlN2Y0YWYxYTQ0Njg1NDBhNmNkOWY1MWU3
15
+ MDlkMjY4NDRkYmZhNTRhYTJlY2ZhMjUzNGRkZjE0MGFiYWVhMGM=
data/README.md CHANGED
@@ -400,6 +400,7 @@ For accounts using two factor authentication, you have to use an oauth token as
400
400
  * **region**: AWS Region the Elastic Beanstalk app is running in. Defaults to 'us-east-1'. Please be aware that this must match the region of the elastic beanstalk app.
401
401
  * **app**: Elastic Beanstalk application name.
402
402
  * **env**: Elastic Beanstalk environment name which will be updated.
403
+ * **zip-file**: The zip-file that you want to deploy. _**Note:**_ you also need to use the `skip-cleanup` or the zipfile you are trying to upload will be removed during cleanup.
403
404
  * **bucket_name**: Bucket name to upload app to.
404
405
 
405
406
  #### Examples:
@@ -21,7 +21,13 @@ module DPL
21
21
 
22
22
  def push_app
23
23
  create_bucket unless bucket_exists?
24
- zip_file = create_zip
24
+
25
+ if options[:zip_file]
26
+ zip_file = File.join(Dir.pwd, options[:zip_file])
27
+ else
28
+ zip_file = create_zip
29
+ end
30
+
25
31
  s3_object = upload(archive_name, zip_file)
26
32
  sleep 5 #s3 eventual consistency
27
33
  version = create_app_version(s3_object)
@@ -47,7 +53,7 @@ module DPL
47
53
  end
48
54
 
49
55
  def region
50
- option(:region) || DEFAULT_REGION
56
+ options[:region] || DEFAULT_REGION
51
57
  end
52
58
 
53
59
  def bucket_name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.12.travis.766.4
4
+ version: 1.7.12.travis.773.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-23 00:00:00.000000000 Z
11
+ date: 2015-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec