engineyard-serverside 1.4.9.nodestack → 1.4.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/lib/engineyard-serverside.rb +1 -3
  2. data/lib/engineyard-serverside/cli.rb +4 -5
  3. data/lib/engineyard-serverside/configuration.rb +1 -1
  4. data/lib/engineyard-serverside/deploy.rb +19 -131
  5. data/lib/engineyard-serverside/lockfile_parser.rb +5 -3
  6. data/lib/engineyard-serverside/logged_output.rb +0 -5
  7. data/lib/engineyard-serverside/task.rb +0 -1
  8. data/lib/engineyard-serverside/version.rb +1 -1
  9. data/spec/custom_deploy_spec.rb +7 -14
  10. data/spec/git_strategy_spec.rb +2 -4
  11. data/spec/real_deploy_spec.rb +103 -67
  12. data/spec/spec_helper.rb +1 -62
  13. metadata +23 -67
  14. data/lib/core-ext/README.md +0 -3
  15. data/lib/core-ext/string.rb +0 -9
  16. data/lib/vendor/ruby_1.8.6_openssl.patch +0 -7
  17. data/spec/fixtures/gemfiles/activerecord_jdbcmysql/Gemfile +0 -5
  18. data/spec/fixtures/gemfiles/activerecord_jdbcmysql/Gemfile.lock +0 -29
  19. data/spec/fixtures/gemfiles/activerecord_jdbcpostgresql/Gemfile +0 -5
  20. data/spec/fixtures/gemfiles/activerecord_jdbcpostgresql/Gemfile.lock +0 -29
  21. data/spec/fixtures/gemfiles/activerecord_mysql/Gemfile +0 -5
  22. data/spec/fixtures/gemfiles/activerecord_mysql/Gemfile.lock +0 -25
  23. data/spec/fixtures/gemfiles/activerecord_mysql2/Gemfile +0 -5
  24. data/spec/fixtures/gemfiles/activerecord_mysql2/Gemfile.lock +0 -25
  25. data/spec/fixtures/gemfiles/activerecord_pg/Gemfile +0 -5
  26. data/spec/fixtures/gemfiles/activerecord_pg/Gemfile.lock +0 -25
  27. data/spec/fixtures/gemfiles/activerecord_sqlite3/Gemfile +0 -5
  28. data/spec/fixtures/gemfiles/activerecord_sqlite3/Gemfile.lock +0 -25
  29. data/spec/fixtures/gemfiles/diy_database_yml/Gemfile +0 -5
  30. data/spec/fixtures/gemfiles/diy_database_yml/Gemfile.lock +0 -25
  31. data/spec/fixtures/gemfiles/diy_database_yml/config/database.yml +0 -7
  32. data/spec/fixtures/gitrepo/foo +0 -0
  33. data/spec/generate_configs_spec.rb +0 -228
  34. data/spec/lib/full_test_deploy.rb +0 -86
data/spec/spec_helper.rb CHANGED
@@ -1,10 +1,7 @@
1
1
  $LOAD_PATH.push File.expand_path("../lib", File.dirname(__FILE__))
2
2
 
3
- # Bundler.require :default, :test - FIXME when we return to ruby 1.8.7+
4
- require 'rubygems'
5
- require 'spec'
3
+ Bundler.require :default, :test
6
4
  require 'pp'
7
- require 'tmpdir'
8
5
  require 'engineyard-serverside'
9
6
 
10
7
  module EY
@@ -35,64 +32,6 @@ GITREPO_DIR = "#{FIXTURES_DIR}/gitrepo"
35
32
  FileUtils.rm_rf GITREPO_DIR if File.exists? GITREPO_DIR
36
33
  Kernel.system "tar xzf #{GITREPO_DIR}.tar.gz -C #{FIXTURES_DIR}"
37
34
 
38
- def setup_dna_json(options = {})
39
- EY::Serverside.dna_json = {
40
- 'environment' => {
41
- "framework_env" => "production",
42
- },
43
- 'engineyard' => {
44
- "environment" => {
45
- "apps" => [{
46
- "name" => "myfirstapp",
47
- "database_name" => "myfirstapp",
48
- "type" => "rack"
49
- }],
50
- "instances" => dna_instances_for(options[:cluster_type] || :solo),
51
- "components" => [{"key" => "ruby_187"}],
52
- "framework_env" => "production",
53
- "stack_name" => "nginx_passenger",
54
- "ssh_username" => "deploy",
55
- "ssh_password" => "12345678",
56
- "db_stack_name" => options[:db_stack_name] || "mysql",
57
- "db_host" => "localhost"
58
- }
59
- }
60
- }.to_json
61
- end
62
- def dna_instances_for(cluster_type = :solo)
63
- case cluster_type
64
- when :solo
65
- [{
66
- "public_hostname" => "solo.compute-1.amazonaws.com",
67
- "role" => "solo",
68
- "private_hostname" => "solo.compute-1.internal"
69
- }]
70
- when :slaves
71
- [
72
- {
73
- "public_hostname" => "app_master.compute-1.amazonaws.com",
74
- "role" => "app_master",
75
- "private_hostname" => "app_master.ec2.internal"
76
- },
77
- {
78
- "public_hostname" => "db_master.compute-1.amazonaws.com",
79
- "role" => "db_master",
80
- "private_hostname" => "db_master.ec2.internal"
81
- },
82
- {
83
- "public_hostname" => "db_slave1.compute-1.amazonaws.com",
84
- "role" => "db_slave",
85
- "private_hostname" => "db_slave1.ec2.internal",
86
- },
87
- {
88
- "public_hostname" => "db_slave2.compute-1.amazonaws.com",
89
- "role" => "db_slave",
90
- "private_hostname" => "db_slave2.ec2.internal",
91
- }
92
- ]
93
- end
94
- end
95
-
96
35
  Spec::Runner.configure do |config|
97
36
  config.before(:all) do
98
37
  EY::Serverside.dna_json = {}.to_json
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-serverside
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1757219163
5
- prerelease: 6
4
+ hash: 17
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 9
10
- - nodestack
11
- version: 1.4.9.nodestack
9
+ - 11
10
+ version: 1.4.11
12
11
  platform: ruby
13
12
  authors:
14
13
  - EY Cloud Team
@@ -16,40 +15,38 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2011-09-09 00:00:00 Z
18
+ date: 2011-09-15 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
21
+ type: :development
22
+ prerelease: false
22
23
  requirement: &id001 !ruby/object:Gem::Requirement
23
24
  none: false
24
25
  requirements:
25
26
  - - "="
26
27
  - !ruby/object:Gem::Version
27
- hash: 49
28
+ hash: 31
28
29
  segments:
29
- - 0
30
- - 8
31
- - 7
32
- version: 0.8.7
30
+ - 1
31
+ - 3
32
+ - 2
33
+ version: 1.3.2
33
34
  version_requirements: *id001
34
- name: rake
35
+ name: rspec
36
+ - !ruby/object:Gem::Dependency
35
37
  type: :development
36
38
  prerelease: false
37
- - !ruby/object:Gem::Dependency
38
39
  requirement: &id002 !ruby/object:Gem::Requirement
39
40
  none: false
40
41
  requirements:
41
- - - "="
42
+ - - ">="
42
43
  - !ruby/object:Gem::Version
43
- hash: 27
44
+ hash: 3
44
45
  segments:
45
- - 1
46
- - 3
47
46
  - 0
48
- version: 1.3.0
47
+ version: "0"
49
48
  version_requirements: *id002
50
- name: rspec
51
- type: :development
52
- prerelease: false
49
+ name: rake
53
50
  description:
54
51
  email: cloud@engineyard.com
55
52
  executables:
@@ -60,8 +57,6 @@ extra_rdoc_files: []
60
57
 
61
58
  files:
62
59
  - bin/engineyard-serverside
63
- - lib/core-ext/README.md
64
- - lib/core-ext/string.rb
65
60
  - lib/engineyard-serverside/bundle_installer.rb
66
61
  - lib/engineyard-serverside/cli.rb
67
62
  - lib/engineyard-serverside/configuration.rb
@@ -232,7 +227,6 @@ files:
232
227
  - lib/vendor/json_pure/tools/server.rb
233
228
  - lib/vendor/json_pure/VERSION
234
229
  - lib/vendor/open4/lib/open4.rb
235
- - lib/vendor/ruby_1.8.6_openssl.patch
236
230
  - lib/vendor/thor/bin/rake2thor
237
231
  - lib/vendor/thor/bin/thor
238
232
  - lib/vendor/thor/CHANGELOG.rdoc
@@ -271,28 +265,10 @@ files:
271
265
  - spec/custom_deploy_spec.rb
272
266
  - spec/deploy_hook_spec.rb
273
267
  - spec/deprecation_spec.rb
274
- - spec/fixtures/gemfiles/activerecord_jdbcmysql/Gemfile
275
- - spec/fixtures/gemfiles/activerecord_jdbcmysql/Gemfile.lock
276
- - spec/fixtures/gemfiles/activerecord_jdbcpostgresql/Gemfile
277
- - spec/fixtures/gemfiles/activerecord_jdbcpostgresql/Gemfile.lock
278
- - spec/fixtures/gemfiles/activerecord_mysql/Gemfile
279
- - spec/fixtures/gemfiles/activerecord_mysql/Gemfile.lock
280
- - spec/fixtures/gemfiles/activerecord_mysql2/Gemfile
281
- - spec/fixtures/gemfiles/activerecord_mysql2/Gemfile.lock
282
- - spec/fixtures/gemfiles/activerecord_pg/Gemfile
283
- - spec/fixtures/gemfiles/activerecord_pg/Gemfile.lock
284
- - spec/fixtures/gemfiles/activerecord_sqlite3/Gemfile
285
- - spec/fixtures/gemfiles/activerecord_sqlite3/Gemfile.lock
286
- - spec/fixtures/gemfiles/diy_database_yml/config/database.yml
287
- - spec/fixtures/gemfiles/diy_database_yml/Gemfile
288
- - spec/fixtures/gemfiles/diy_database_yml/Gemfile.lock
289
- - spec/fixtures/gitrepo/foo
290
268
  - spec/fixtures/gitrepo.tar.gz
291
269
  - spec/fixtures/invalid_hook.rb
292
270
  - spec/fixtures/valid_hook.rb
293
- - spec/generate_configs_spec.rb
294
271
  - spec/git_strategy_spec.rb
295
- - spec/lib/full_test_deploy.rb
296
272
  - spec/lockfile_parser_spec.rb
297
273
  - spec/real_deploy_spec.rb
298
274
  - spec/restart_spec.rb
@@ -327,18 +303,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
327
303
  required_rubygems_version: !ruby/object:Gem::Requirement
328
304
  none: false
329
305
  requirements:
330
- - - ">"
306
+ - - ">="
331
307
  - !ruby/object:Gem::Version
332
- hash: 25
308
+ hash: 3
333
309
  segments:
334
- - 1
335
- - 3
336
- - 1
337
- version: 1.3.1
310
+ - 0
311
+ version: "0"
338
312
  requirements: []
339
313
 
340
314
  rubyforge_project:
341
- rubygems_version: 1.8.6
315
+ rubygems_version: 1.8.10
342
316
  signing_key:
343
317
  specification_version: 3
344
318
  summary: A gem that deploys ruby applications on EY Cloud instances
@@ -346,28 +320,10 @@ test_files:
346
320
  - spec/custom_deploy_spec.rb
347
321
  - spec/deploy_hook_spec.rb
348
322
  - spec/deprecation_spec.rb
349
- - spec/fixtures/gemfiles/activerecord_jdbcmysql/Gemfile
350
- - spec/fixtures/gemfiles/activerecord_jdbcmysql/Gemfile.lock
351
- - spec/fixtures/gemfiles/activerecord_jdbcpostgresql/Gemfile
352
- - spec/fixtures/gemfiles/activerecord_jdbcpostgresql/Gemfile.lock
353
- - spec/fixtures/gemfiles/activerecord_mysql/Gemfile
354
- - spec/fixtures/gemfiles/activerecord_mysql/Gemfile.lock
355
- - spec/fixtures/gemfiles/activerecord_mysql2/Gemfile
356
- - spec/fixtures/gemfiles/activerecord_mysql2/Gemfile.lock
357
- - spec/fixtures/gemfiles/activerecord_pg/Gemfile
358
- - spec/fixtures/gemfiles/activerecord_pg/Gemfile.lock
359
- - spec/fixtures/gemfiles/activerecord_sqlite3/Gemfile
360
- - spec/fixtures/gemfiles/activerecord_sqlite3/Gemfile.lock
361
- - spec/fixtures/gemfiles/diy_database_yml/config/database.yml
362
- - spec/fixtures/gemfiles/diy_database_yml/Gemfile
363
- - spec/fixtures/gemfiles/diy_database_yml/Gemfile.lock
364
- - spec/fixtures/gitrepo/foo
365
323
  - spec/fixtures/gitrepo.tar.gz
366
324
  - spec/fixtures/invalid_hook.rb
367
325
  - spec/fixtures/valid_hook.rb
368
- - spec/generate_configs_spec.rb
369
326
  - spec/git_strategy_spec.rb
370
- - spec/lib/full_test_deploy.rb
371
327
  - spec/lockfile_parser_spec.rb
372
328
  - spec/real_deploy_spec.rb
373
329
  - spec/restart_spec.rb
@@ -1,3 +0,0 @@
1
- # methods for core Ruby classes that aren't available in ruby 1.8.6 (used by ey_resin)
2
- # versions here are just workarounds
3
- # FIXME remove this folder when ey_resin (and .rvmrc) updated to ruby 1.8.7 or 1.9.2
@@ -1,9 +0,0 @@
1
- # methods for String that aren't available in ruby 1.8.6 (used by ey_resin)
2
- # versions here are just workarounds
3
- # FIXME remove this module when ey_resin (and .rvmrc) updated to ruby 1.8.7 or 1.9.2
4
- module ModernString
5
- def start_with?(prefix)
6
- self.index(prefix) == 0
7
- end
8
- end
9
- String.send(:include, ModernString)
@@ -1,7 +0,0 @@
1
- diff --git a/ext/openssl/openssl_missing.h b/ext/openssl/openssl_missing.h
2
- index 2ebf61a..8a0202a 100644
3
- --- a/ext/openssl/openssl_missing.h
4
- +++ b/ext/openssl/openssl_missing.h
5
- @@ -123,2 +122,0 @@ int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_
6
- -int BN_rand_range(BIGNUM *r, BIGNUM *range);
7
- -int BN_pseudo_rand_range(BIGNUM *r, BIGNUM *range);
@@ -1,5 +0,0 @@
1
- # A sample Gemfile
2
- source "http://rubygems.org"
3
-
4
- gem "activerecord"
5
- gem "activerecord-jdbcmysql-adapter"
@@ -1,29 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activemodel (3.0.10)
5
- activesupport (= 3.0.10)
6
- builder (~> 2.1.2)
7
- i18n (~> 0.5.0)
8
- activerecord (3.0.10)
9
- activemodel (= 3.0.10)
10
- activesupport (= 3.0.10)
11
- arel (~> 2.0.10)
12
- tzinfo (~> 0.3.23)
13
- activerecord-jdbc-adapter (1.1.3)
14
- activerecord-jdbcmysql-adapter (1.1.3)
15
- activerecord-jdbc-adapter (= 1.1.3)
16
- jdbc-mysql (~> 5.1.0)
17
- activesupport (3.0.10)
18
- arel (2.0.10)
19
- builder (2.1.2)
20
- i18n (0.5.0)
21
- jdbc-mysql (5.1.13)
22
- tzinfo (0.3.29)
23
-
24
- PLATFORMS
25
- ruby
26
-
27
- DEPENDENCIES
28
- activerecord
29
- activerecord-jdbcmysql-adapter
@@ -1,5 +0,0 @@
1
- # A sample Gemfile
2
- source "http://rubygems.org"
3
-
4
- gem "activerecord"
5
- gem "activerecord-jdbcpostgresql-adapter"
@@ -1,29 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activemodel (3.0.10)
5
- activesupport (= 3.0.10)
6
- builder (~> 2.1.2)
7
- i18n (~> 0.5.0)
8
- activerecord (3.0.10)
9
- activemodel (= 3.0.10)
10
- activesupport (= 3.0.10)
11
- arel (~> 2.0.10)
12
- tzinfo (~> 0.3.23)
13
- activerecord-jdbc-adapter (1.1.3)
14
- activerecord-jdbcpostgresql-adapter (1.1.3)
15
- activerecord-jdbc-adapter (= 1.1.3)
16
- jdbc-postgres (~> 9.0.0)
17
- activesupport (3.0.10)
18
- arel (2.0.10)
19
- builder (2.1.2)
20
- i18n (0.5.0)
21
- jdbc-postgres (9.0.801)
22
- tzinfo (0.3.29)
23
-
24
- PLATFORMS
25
- ruby
26
-
27
- DEPENDENCIES
28
- activerecord
29
- activerecord-jdbcpostgresql-adapter
@@ -1,5 +0,0 @@
1
- # A sample Gemfile
2
- source "http://rubygems.org"
3
-
4
- gem "activerecord"
5
- gem "mysql"
@@ -1,25 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activemodel (3.0.10)
5
- activesupport (= 3.0.10)
6
- builder (~> 2.1.2)
7
- i18n (~> 0.5.0)
8
- activerecord (3.0.10)
9
- activemodel (= 3.0.10)
10
- activesupport (= 3.0.10)
11
- arel (~> 2.0.10)
12
- tzinfo (~> 0.3.23)
13
- activesupport (3.0.10)
14
- arel (2.0.10)
15
- builder (2.1.2)
16
- i18n (0.5.0)
17
- mysql (2.8.1)
18
- tzinfo (0.3.29)
19
-
20
- PLATFORMS
21
- ruby
22
-
23
- DEPENDENCIES
24
- activerecord
25
- mysql
@@ -1,5 +0,0 @@
1
- # A sample Gemfile
2
- source "http://rubygems.org"
3
-
4
- gem "activerecord"
5
- gem "mysql2"
@@ -1,25 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activemodel (3.0.10)
5
- activesupport (= 3.0.10)
6
- builder (~> 2.1.2)
7
- i18n (~> 0.5.0)
8
- activerecord (3.0.10)
9
- activemodel (= 3.0.10)
10
- activesupport (= 3.0.10)
11
- arel (~> 2.0.10)
12
- tzinfo (~> 0.3.23)
13
- activesupport (3.0.10)
14
- arel (2.0.10)
15
- builder (2.1.2)
16
- i18n (0.5.0)
17
- mysql2 (0.3.7)
18
- tzinfo (0.3.29)
19
-
20
- PLATFORMS
21
- ruby
22
-
23
- DEPENDENCIES
24
- activerecord
25
- mysql2
@@ -1,5 +0,0 @@
1
- # A sample Gemfile
2
- source "http://rubygems.org"
3
-
4
- gem "activerecord"
5
- gem "pg"
@@ -1,25 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activemodel (3.0.10)
5
- activesupport (= 3.0.10)
6
- builder (~> 2.1.2)
7
- i18n (~> 0.5.0)
8
- activerecord (3.0.10)
9
- activemodel (= 3.0.10)
10
- activesupport (= 3.0.10)
11
- arel (~> 2.0.10)
12
- tzinfo (~> 0.3.23)
13
- activesupport (3.0.10)
14
- arel (2.0.10)
15
- builder (2.1.2)
16
- i18n (0.5.0)
17
- pg (0.11.0)
18
- tzinfo (0.3.29)
19
-
20
- PLATFORMS
21
- ruby
22
-
23
- DEPENDENCIES
24
- activerecord
25
- pg