elastic-beanstalk 0.3.5 → 1.0.0

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
- N2NkMzc4N2I3OTAwZmE1YTk0NzE2NmRlZjFiY2MyMzc2MmYyY2JlNg==
4
+ OTE1OWJkODc3MDJjOGZjNGQ3ZmQ3NTA4NmNhODMwMjE1YmM5YWVhZA==
5
5
  data.tar.gz: !binary |-
6
- ZWYxY2RhMzE1ZmNjYTJlMmJhZjZmMjk5YjRjYmM1M2EwMDU3YjQzMQ==
6
+ ZTZkYWFhOGU1ZGI0MGJiOWJjMDQ4M2NmZTE1OGM1NmNjYjRmMWRlNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NmIzZTRjYTFiMmIwYThiYjQwYjIwNDRhZjk2NmEyNjMyN2Y2OTIzNGU4OWE1
10
- MWEzZTQwOGVhYTQ0YjcxZDE3NWUzN2NhMDU5ODE1MDVhZTliYjEyYmYzODE2
11
- NDU3ZDdmM2JkYWU3ZGI5ZjczZGRmNzU3NTc3YTkxZWNiMzE2YWU=
9
+ MTVkYjhkN2ViNmQ3NmJhZGVlYzBhZDM2YmUzZjQ3ZDE5NGIwOTIwNTQ2MGFm
10
+ OGM1MGI3MjgwMDc0MGE2YWE4NTFkYWQxMTg5NjhkNmY3NWRiODA3ZWVhY2Mz
11
+ MWRiYmZmNmUwZWJlODlhMjNkNDE5ZWRkNTNjNjM5ZWNlMzhjNTY=
12
12
  data.tar.gz: !binary |-
13
- ZTI5MjlkNWE4NWMwMTkzNDFkYTMzMDMxY2FjNjc3NjZkNDAyZTM5ZjY0NzA0
14
- Y2JjMTIzMWUyMWVkODVmMjU5YTliM2E3MTRlOWYyMjBiOTU0ODg4ODNmMzgy
15
- NWFhMjIwYzZmYmQyZjA5YjdjMTI4MDBiMDdiNzc3NDRiZjNhOWQ=
13
+ ZTU1NDI4YjVkMGI2YWNhZDc3ZmFmZmEyOWFjMGFkNTZjODIzODJmMzFjNTBm
14
+ NDhlMjhiZjc5NGFjNDU3MDM1NjNmZmM3ZWFjYWVlNmQxYWVkNDZiZjkzZDgy
15
+ ZDExY2E0NWI1N2YzMTkyN2IzNDdiZDRiM2FlOTYyYmMwNzg2NjE=
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ElasticBeanstalk
2
2
 
3
- Configure and deploy a rails app to Elastic Beanstalk via rake in 60 seconds. Maintain multiple environment DRY configurations and .ebextensions in one easy to use configuration file.
3
+ Configure and deploy a rails app to Elastic Beanstalk via rake in 60 seconds. Maintain multiple environment DRY configurations and .ebextensions in one easy to use yaml configuration file.
4
4
 
5
5
  This gem simplifies configuration, and passes the heavy lifting to the [eb_deployer](https://github.com/ThoughtWorksStudios/eb_deployer) from ThoughtWorksStudios.
6
6
 
@@ -22,9 +22,9 @@ Or install it yourself as:
22
22
 
23
23
  ### The elastic-beanstalk gem provides:
24
24
  * Rake tasks to simplify all interactions
25
- * Multi-environment configuration inheritance so your configs can be DRY
25
+ * Multi-environment configuration inheritance for DRY yaml configs
26
+ * Keep all configurations including .ebextensions in one yaml file (they are inheritable and can be overridden too)
26
27
  * Full access to the range of configuration options provided by AWS Elastic Beanstalk
27
- * Keep all configurations including .ebextensions in one file (they are inheritable and can be overridden too)
28
28
  * Provide access to helpers such as the SmokeTester to simplify configurations
29
29
 
30
30
  ### Plus
@@ -48,7 +48,8 @@ Something like this should get you started
48
48
 
49
49
  app: acme
50
50
  region: us-east-1
51
- solution_stack_name: 64bit Amazon Linux running Ruby 1.9.3
51
+ # http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html
52
+ solution_stack_name: 64bit Amazon Linux 2013.09 running Ruby 1.9.3
52
53
 
53
54
  development:
54
55
  strategy: inplace_update
@@ -204,6 +205,22 @@ config/eb.yml
204
205
  aws:autoscaling:launchconfiguration:
205
206
  InstanceType: t1.small
206
207
 
208
+
209
+ ## Additional options
210
+ Most of the configurations are defaulted. The following are less obvious but may be useful:
211
+
212
+ secrets_dir: (default: '~/.aws')
213
+ package:
214
+ verbose: (default: false)
215
+ dir: (default: 'pkg')
216
+
217
+ ### eb_deployer additional options
218
+ The following are passed if not nil, otherwise eb_deployer assigns an appropriate default.
219
+
220
+ package_bucket:
221
+ keep_latest:
222
+ version_prefix:
223
+
207
224
  ## Still to come
208
225
  1. Caching sample config
209
226
  2. More thorough access to the Elastic Beanstalk api as-needed.
@@ -21,6 +21,7 @@ module Elastic
21
21
  # seed the sensible defaults here
22
22
  @configuration = {
23
23
  environment: nil,
24
+ secrets_dir: '~/.aws',
24
25
  disallow_environments: %w(cucumber test),
25
26
  strategy: :blue_green,
26
27
  package: {
@@ -276,6 +276,10 @@ namespace :eb do
276
276
  package: package
277
277
  }
278
278
 
279
+ options[:package_bucket] = EbConfig.package_bucket unless EbConfig.package_bucket.nil?
280
+ options[:keep_latest] = EbConfig.keep_latest unless EbConfig.keep_latest.nil?
281
+ options[:version_prefix] = EbConfig.version_prefix unless EbConfig.version_prefix.nil?
282
+
279
283
  unless EbConfig.smoke_test.nil?
280
284
  options[:smoke_test] = eval EbConfig.smoke_test
281
285
  end
@@ -393,6 +397,6 @@ namespace :eb do
393
397
  end
394
398
 
395
399
  def aws_secrets_file
396
- File.expand_path("~/.aws/#{EbConfig.app}.yml")
400
+ File.expand_path("#{EbConfig.secrets_dir}/#{EbConfig.app}.yml")
397
401
  end
398
402
  end
@@ -1,5 +1,5 @@
1
1
  module Elastic
2
2
  module Beanstalk
3
- VERSION = '0.3.5'
3
+ VERSION = '1.0.0'
4
4
  end
5
5
  end
@@ -67,6 +67,7 @@ describe EbConfig do
67
67
  def assert_common_top_level_settings
68
68
  expect(EbConfig.app).to eql 'acme'
69
69
  expect(EbConfig.region).to eql 'us-east-1'
70
+ expect(EbConfig.secrets_dir).to eql '~/.aws'
70
71
  expect(EbConfig.strategy).to eql :blue_green
71
72
  expect(EbConfig.solution_stack_name).to eql '64bit Amazon Linux running Ruby 1.9.3'
72
73
  expect(EbConfig.disallow_environments).to eql %w(cucumber test)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-beanstalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Ross
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-12 00:00:00.000000000 Z
11
+ date: 2014-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler