elastic-beanstalk 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NTMxYWIxZmMyODhiM2YyZDA5MGJlNjJlMzg3M2E1NTllYzNkN2Y4Ng==
5
+ data.tar.gz: !binary |-
6
+ NTgyNDRjYTE0YzkxODY3ZTgxYTk3MGJlNDVkNzc0NTZkYTQwMDVjNA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MTk0N2RiYmM4MjU0MWZkMmYxYTYwMjM3YzBmNTgwMTAyNjg5MWRjMzM4OTRh
10
+ ZDc5ZDQzYWIzYjUwNGUxY2IzNmUxZWVmODAxMTMwOTA3M2I4YWMzNThmYWZi
11
+ YTZlZDZjN2ZkYzlkNjYwZmYyZGEzMWRlN2JlYmE5YWZlNDdkNmY=
12
+ data.tar.gz: !binary |-
13
+ YTJmYjYwYjYxMTViYmQyNTNlNzg1Mjg5OGM4YjE4OWI2YTQwYWM4YjkyOTQz
14
+ ZjkwNjgzZTY4Y2Q5MzMzYTY5NmFjNjU0MDgzOWNkZjJkYTU1MjYzMzY0YmEz
15
+ Mzc5MzU0MGJiOWNiZmUyNDY3N2M2MDM1Yzg5MjQ4ZDVlOTBjZTA=
data/README.md CHANGED
@@ -80,7 +80,7 @@ This will take a while. We intend to provide an example in the wiki and/or samp
80
80
 
81
81
  ## EB:RDS Rake Tasks
82
82
 
83
- The EB:RDS tasks are intended to make integration of RDS tasks into the deployment process simple.
83
+ The EB:RDS tasks are intended to make use of RDS tasks simple given existing configuration in the eb.yml.
84
84
  i.e. create a snapshot before or after an `eb:deploy`. The following rake tasks exist:
85
85
 
86
86
  rake eb:rds:create_snapshot[instance_id,snapshot_id] # Creates an RDS snapshot
@@ -127,6 +127,47 @@ config/eb.yml
127
127
  container_commands:
128
128
  01timezone:
129
129
  command: "ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime"
130
+
131
+ # These are things that make sense for any Ruby application see:
132
+ # https://github.com/gkop/elastic-beanstalk-ruby/blob/master/.ebextensions/ruby.config
133
+ 03-ruby.config:
134
+
135
+ # Install git in order to be able to bundle gems from git
136
+ packages:
137
+ yum:
138
+ git: []
139
+ commands:
140
+ # Run rake with bundle exec to be sure you get the right version
141
+ add_bundle_exec:
142
+ test: test ! -f /opt/elasticbeanstalk/support/.post-provisioning-complete
143
+ cwd: /opt/elasticbeanstalk/hooks/appdeploy/pre
144
+ command: perl -pi -e 's/(rake)/bundle exec $1/' 11_asset_compilation.sh 12_db_migration.sh
145
+ # Bundle with --deployment as recommended by bundler docs
146
+ # cf. http://gembundler.com/v1.2/rationale.html under Deploying Your Application
147
+ add_deployment_flag:
148
+ test: test ! -f /opt/elasticbeanstalk/support/.post-provisioning-complete
149
+ cwd: /opt/elasticbeanstalk/hooks/appdeploy/pre
150
+ command: perl -pi -e 's/(bundle install)/$1 --deployment/' 10_bundle_install.sh
151
+ # Vendor gems to a persistent directory for speedy subsequent bundling
152
+ make_vendor_bundle_dir:
153
+ test: test ! -f /opt/elasticbeanstalk/support/.post-provisioning-complete
154
+ command: mkdir /var/app/support/vendor_bundle
155
+ # Store the location of vendored gems in a handy env var
156
+ set_vendor_bundle_var:
157
+ test: test ! -f /opt/elasticbeanstalk/support/.post-provisioning-complete
158
+ cwd: /opt/elasticbeanstalk/support
159
+ command: sed -i '12iexport EB_CONFIG_APP_VENDOR_BUNDLE=$EB_CONFIG_APP_SUPPORT/vendor_bundle' envvars
160
+ # The --deployment flag tells bundler to install gems to vendor/bundle/, so
161
+ # symlink that to the persistent directory
162
+ symlink_vendor_bundle:
163
+ test: test ! -f /opt/elasticbeanstalk/support/.post-provisioning-complete
164
+ cwd: /opt/elasticbeanstalk/hooks/appdeploy/pre
165
+ command: sed -i '6iln -s $EB_CONFIG_APP_VENDOR_BUNDLE ./vendor/bundle' 10_bundle_install.sh
166
+ # Don't run the above commands again on this instance
167
+ # cf. http://stackoverflow.com/a/16846429/283398
168
+ z_write_post_provisioning_complete_file:
169
+ cwd: /opt/elasticbeanstalk/support
170
+ command: touch .post-provisioning-complete
130
171
  #---
131
172
  options:
132
173
  aws:autoscaling:launchconfiguration:
@@ -164,9 +205,8 @@ config/eb.yml
164
205
  InstanceType: t1.small
165
206
 
166
207
  ## Still to come
167
- 1. RDS sample config
168
- 2. Caching sample config
169
- 3. More thorough access to the Elastic Beanstalk api as-needed.
208
+ 1. Caching sample config
209
+ 2. More thorough access to the Elastic Beanstalk api as-needed.
170
210
 
171
211
  ## Contributing
172
212
 
@@ -30,11 +30,11 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'rspec', '>= 2.14.1'
31
31
 
32
32
  # runtime
33
- spec.add_runtime_dependency 'railties', '>= 3.2'
33
+ spec.add_runtime_dependency 'railties', '>= 4.0.1'
34
34
  spec.add_runtime_dependency 'eb_deployer'
35
35
  spec.add_runtime_dependency 'awesome_print'
36
36
  spec.add_runtime_dependency 'time_diff'
37
- spec.add_runtime_dependency 'zipruby'
37
+ spec.add_runtime_dependency 'rubyzip'
38
38
  spec.add_runtime_dependency 'table_print'
39
39
  spec.add_runtime_dependency 'nokogiri'
40
40
  end
@@ -1,5 +1,5 @@
1
1
  require 'digest'
2
- require 'zipruby' # gem 'zipruby'
2
+ require 'zip'
3
3
  require 'ap' # gem 'awesome_print'
4
4
  require 'eb_deployer'
5
5
  require 'time_diff'
@@ -206,17 +206,17 @@ namespace :eb do
206
206
  mkdir_p EbConfig.package[:dir] rescue nil
207
207
 
208
208
  # zip it up
209
- Zip::Archive.open(package_file, Zip::CREATE) do |archive|
209
+ Zip::File.open(package_file, Zip::File::CREATE) do |archive|
210
210
 
211
211
  puts "\nCreating archive (#{package_file}):" if package_verbose?
212
212
  files.each do |f|
213
213
 
214
214
  if File.directory?(f)
215
215
  puts "\t#{f}" if package_verbose?
216
- archive.add_dir(f)
216
+ archive.add(f, f)
217
217
  else
218
218
  puts "\t\t#{f}" if package_verbose?
219
- archive.add_file(f, f)
219
+ archive.add(f, f)
220
220
  end
221
221
  end
222
222
  end
@@ -1,5 +1,5 @@
1
1
  module Elastic
2
2
  module Beanstalk
3
- VERSION = '0.3.3'
3
+ VERSION = '0.3.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-beanstalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
5
- prerelease:
4
+ version: 0.3.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kevin Ross
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-23 00:00:00.000000000 Z
11
+ date: 2013-12-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -62,23 +55,20 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: railties
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
69
- version: '3.2'
61
+ version: 4.0.1
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
77
- version: '3.2'
68
+ version: 4.0.1
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: eb_deployer
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ! '>='
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ! '>='
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: awesome_print
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ! '>='
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ! '>='
108
95
  - !ruby/object:Gem::Version
@@ -110,7 +97,6 @@ dependencies:
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: time_diff
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ! '>='
116
102
  - !ruby/object:Gem::Version
@@ -118,15 +104,13 @@ dependencies:
118
104
  type: :runtime
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ! '>='
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  - !ruby/object:Gem::Dependency
127
- name: zipruby
112
+ name: rubyzip
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
115
  - - ! '>='
132
116
  - !ruby/object:Gem::Version
@@ -134,7 +118,6 @@ dependencies:
134
118
  type: :runtime
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
122
  - - ! '>='
140
123
  - !ruby/object:Gem::Version
@@ -142,7 +125,6 @@ dependencies:
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: table_print
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
129
  - - ! '>='
148
130
  - !ruby/object:Gem::Version
@@ -150,7 +132,6 @@ dependencies:
150
132
  type: :runtime
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
136
  - - ! '>='
156
137
  - !ruby/object:Gem::Version
@@ -158,7 +139,6 @@ dependencies:
158
139
  - !ruby/object:Gem::Dependency
159
140
  name: nokogiri
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
143
  - - ! '>='
164
144
  - !ruby/object:Gem::Version
@@ -166,7 +146,6 @@ dependencies:
166
146
  type: :runtime
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
150
  - - ! '>='
172
151
  - !ruby/object:Gem::Version
@@ -208,27 +187,26 @@ files:
208
187
  homepage: https://github.com/alienfast/elastic-beanstalk
209
188
  licenses:
210
189
  - MIT
190
+ metadata: {}
211
191
  post_install_message:
212
192
  rdoc_options: []
213
193
  require_paths:
214
194
  - lib
215
195
  required_ruby_version: !ruby/object:Gem::Requirement
216
- none: false
217
196
  requirements:
218
197
  - - ! '>='
219
198
  - !ruby/object:Gem::Version
220
199
  version: '0'
221
200
  required_rubygems_version: !ruby/object:Gem::Requirement
222
- none: false
223
201
  requirements:
224
202
  - - ! '>='
225
203
  - !ruby/object:Gem::Version
226
204
  version: '0'
227
205
  requirements: []
228
206
  rubyforge_project:
229
- rubygems_version: 1.8.25
207
+ rubygems_version: 2.1.9
230
208
  signing_key:
231
- specification_version: 3
209
+ specification_version: 4
232
210
  summary: Configure and deploy a rails app to Elastic Beanstalk via rake in 60 seconds.
233
211
  Maintain multiple environment DRY configurations and .ebextensions in one easy to
234
212
  use configuration file.