eb_deployer 0.4.11 → 0.4.12

Sign up to get free protection for your applications and to get access to all the features.
data/eb_deployer.gemspec CHANGED
@@ -3,7 +3,7 @@ require File.expand_path('../lib/eb_deployer/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["wpc", "betarelease"]
6
- gem.email = ["alex.hal9000@gmail.com", "sudhindra.r.rao@gmail.com"]
6
+ gem.email = ["alex.hal9000@gmail.com", "sudhindra.r.rao@gmail.com", 'swing1979@gmail.com']
7
7
  gem.description = %q{For automating Blue-Green deployment flows on Elastic Beanstalk.}
8
8
  gem.summary = %q{Low friction deployments should be a breeze. Elastic Beanstalk provides a great foundation for performing Blue-Green deployments, and EbDeployer add a missing top to automate the whole flow out of the box.}
9
9
  gem.homepage = "https://github.com/ThoughtWorksStudios/eb_deployer"
@@ -137,7 +137,7 @@ module EbDeployer
137
137
 
138
138
  def default_create_options
139
139
  {
140
- :solution_stack => "64bit Amazon Linux 2014.03 v1.0.3 running Tomcat 7 Java 7",
140
+ :solution_stack => "64bit Amazon Linux 2014.09 v1.1.0 running Tomcat 7 Java 7",
141
141
  :smoke_test => Proc.new {},
142
142
  :tier => 'WebServer'
143
143
  }
@@ -1,3 +1,3 @@
1
1
  module EbDeployer
2
- VERSION = "0.4.11"
2
+ VERSION = "0.4.12"
3
3
  end
@@ -1,11 +1,12 @@
1
1
  require 'rails/generators'
2
2
  require 'eb_deployer/default_config'
3
3
  require 'aws/elastic_beanstalk'
4
+ require 'securerandom'
4
5
 
5
6
  module EbDeployer
6
7
  module Generators
7
8
  class InstallGenerator < Rails::Generators::Base
8
- DEFAULT_STACK_NAME = '64bit Amazon Linux 2014.03 v1.0.3 running Ruby 2.0 (Puma)'
9
+ DEFAULT_STACK_NAME = '64bit Amazon Linux 2014.09 v1.1.0 running Ruby 2.1 (Passenger Standalone)'
9
10
  source_root File.expand_path("../templates", __FILE__)
10
11
 
11
12
  def do_install
@@ -59,16 +60,20 @@ YAML
59
60
 
60
61
  def solution_stack_name
61
62
  AWS::ElasticBeanstalk.new.client.list_available_solution_stacks[:solution_stacks].find do |s|
62
- s =~ /Amazon Linux/ && s =~ /running Ruby 2.0 \(Puma\)/
63
+ s =~ /Amazon Linux/ && s =~ /running Ruby 2.1 \(Passenger Standalone\)/
63
64
  end
64
65
  rescue
65
- '64bit Amazon Linux 2014.03 v1.0.4 running Ruby 2.0 (Puma)'
66
+ DEFAULT_STACK_NAME
66
67
  end
67
68
 
68
69
  def alphanumeric_name
69
70
  app_name.gsub(/-/, '')
70
71
  end
71
72
 
73
+ def secure_random(length)
74
+ SecureRandom.hex(length)
75
+ end
76
+
72
77
  def app_name
73
78
  File.basename(Dir.pwd).downcase.gsub(/[^0-9a-z]/, '-').gsub(/--/, '-')
74
79
  end
@@ -93,7 +93,6 @@ common:
93
93
  - namespace: aws:autoscaling:launchconfiguration
94
94
  option_name: InstanceType
95
95
  value: m1.small
96
-
97
96
  - namespace: aws:elasticbeanstalk:application:environment
98
97
  option_name: DATABASE_NAME
99
98
  value: <%= alphanumeric_name %>
@@ -146,3 +145,8 @@ environments:
146
145
  # - namespace: aws:autoscaling:asg
147
146
  # option_name: MinSize
148
147
  # value: "2"
148
+
149
+ # For Rails4: config/secrets.yml
150
+ - namespace: aws:elasticbeanstalk:application:environment
151
+ option_name: SECRET_KEY_BASE
152
+ value: <%= secure_random(128) %>
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  packages:
3
3
  yum:
4
- postgresql-libs: []
5
- postgresql-devel: []
4
+ postgresql93-libs: []
5
+ postgresql93-devel: []
@@ -168,7 +168,7 @@ class EBStub
168
168
  end
169
169
 
170
170
  def list_solution_stack_names
171
- @solution_stacks || ["64bit Amazon Linux 2014.03 v1.0.3 running Tomcat 7 Java 7"]
171
+ @solution_stacks || ["64bit Amazon Linux 2014.09 v1.1.0 running Tomcat 7 Java 7"]
172
172
  end
173
173
 
174
174
  #test only
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eb_deployer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
4
+ version: 0.4.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-02-09 00:00:00.000000000 Z
13
+ date: 2015-02-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: aws-sdk-v1
@@ -38,6 +38,7 @@ description: For automating Blue-Green deployment flows on Elastic Beanstalk.
38
38
  email:
39
39
  - alex.hal9000@gmail.com
40
40
  - sudhindra.r.rao@gmail.com
41
+ - swing1979@gmail.com
41
42
  executables:
42
43
  - eb_deploy
43
44
  extensions: []