engineyard-serverside 2.8.0 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/engineyard-serverside.rb +2 -5
  3. data/lib/engineyard-serverside/configuration.rb +3 -3
  4. data/lib/engineyard-serverside/deploy.rb +2 -1
  5. data/lib/engineyard-serverside/version.rb +1 -1
  6. metadata +46 -126
  7. data/features/enable_maintenance/step_definitions/enable_maintenance_steps.rb +0 -43
  8. data/features/step_definitions/app_steps.rb +0 -10
  9. data/features/step_definitions/server_steps.rb +0 -14
  10. data/lib/vendor/json_pure/COPYING +0 -57
  11. data/lib/vendor/json_pure/GPL +0 -340
  12. data/lib/vendor/json_pure/README.rdoc +0 -358
  13. data/lib/vendor/json_pure/VERSION +0 -1
  14. data/lib/vendor/json_pure/lib/json.rb +0 -62
  15. data/lib/vendor/json_pure/lib/json/add/bigdecimal.rb +0 -28
  16. data/lib/vendor/json_pure/lib/json/add/complex.rb +0 -22
  17. data/lib/vendor/json_pure/lib/json/add/core.rb +0 -11
  18. data/lib/vendor/json_pure/lib/json/add/date.rb +0 -34
  19. data/lib/vendor/json_pure/lib/json/add/date_time.rb +0 -48
  20. data/lib/vendor/json_pure/lib/json/add/exception.rb +0 -31
  21. data/lib/vendor/json_pure/lib/json/add/ostruct.rb +0 -31
  22. data/lib/vendor/json_pure/lib/json/add/range.rb +0 -29
  23. data/lib/vendor/json_pure/lib/json/add/rational.rb +0 -22
  24. data/lib/vendor/json_pure/lib/json/add/regexp.rb +0 -30
  25. data/lib/vendor/json_pure/lib/json/add/struct.rb +0 -30
  26. data/lib/vendor/json_pure/lib/json/add/symbol.rb +0 -25
  27. data/lib/vendor/json_pure/lib/json/add/time.rb +0 -38
  28. data/lib/vendor/json_pure/lib/json/common.rb +0 -484
  29. data/lib/vendor/json_pure/lib/json/ext.rb +0 -21
  30. data/lib/vendor/json_pure/lib/json/generic_object.rb +0 -70
  31. data/lib/vendor/json_pure/lib/json/pure.rb +0 -21
  32. data/lib/vendor/json_pure/lib/json/pure/generator.rb +0 -522
  33. data/lib/vendor/json_pure/lib/json/pure/parser.rb +0 -359
  34. data/lib/vendor/json_pure/lib/json/version.rb +0 -8
  35. data/lib/vendor/multi_json/CHANGELOG.md +0 -121
  36. data/lib/vendor/multi_json/CONTRIBUTING.md +0 -46
  37. data/lib/vendor/multi_json/Gemfile +0 -31
  38. data/lib/vendor/multi_json/LICENSE.md +0 -20
  39. data/lib/vendor/multi_json/README.md +0 -105
  40. data/lib/vendor/multi_json/Rakefile +0 -12
  41. data/lib/vendor/multi_json/lib/multi_json.rb +0 -137
  42. data/lib/vendor/multi_json/lib/multi_json/adapters/gson.rb +0 -20
  43. data/lib/vendor/multi_json/lib/multi_json/adapters/json_common.rb +0 -35
  44. data/lib/vendor/multi_json/lib/multi_json/adapters/json_gem.rb +0 -12
  45. data/lib/vendor/multi_json/lib/multi_json/adapters/json_pure.rb +0 -12
  46. data/lib/vendor/multi_json/lib/multi_json/adapters/nsjsonserialization.rb +0 -35
  47. data/lib/vendor/multi_json/lib/multi_json/adapters/oj.rb +0 -29
  48. data/lib/vendor/multi_json/lib/multi_json/adapters/ok_json.rb +0 -58
  49. data/lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb +0 -20
  50. data/lib/vendor/multi_json/lib/multi_json/vendor/okjson.rb +0 -602
  51. data/lib/vendor/multi_json/lib/multi_json/version.rb +0 -3
  52. data/lib/vendor/multi_json/spec/adapter_shared_example.rb +0 -162
  53. data/lib/vendor/multi_json/spec/helper.rb +0 -45
  54. data/lib/vendor/multi_json/spec/json_common_shared_example.rb +0 -36
  55. data/lib/vendor/multi_json/spec/multi_json_spec.rb +0 -151
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3fbdbd466a22b707283bf47395220f0a81b77ac9ec926ffcaef805f0d9a2448c
4
- data.tar.gz: 7289debb0ab4af4df33dec2ae0e6f8464a8e3b883479cafd24fe18423703cf48
3
+ metadata.gz: c3c2f206c82409786eb545bb2ac6384b750834bb07efb5dfeb74d38f929693cd
4
+ data.tar.gz: b593b15c6bf51cfc074bce4ff8237c28b92e49e005d11a08eed3cb133c349870
5
5
  SHA512:
6
- metadata.gz: 832ef48fc2a640afbf443e680353bb5e77d2c1d05517ef00c06be0c6668117a65da3acdffbb46cecce8e768d29bf5f2656886b070e3109fa91c0378a9f642308
7
- data.tar.gz: 9f7fb645f31ece040e792ebfacb5a40bf6d74ffd1abf56a1b538fa2b4efab315cddee784c4dc833100c954de4e71ca5e1a5d3b5f653fa53d98cfa7f9a064013d
6
+ metadata.gz: 2dcf7810ff833248884086b964ebfe1c2efb4bbb6ab06f20ab3a4f097f5568ceabaf3fbda16f72f5d1c2e75298033b294f855f2d6ef1783ab8d510bed3964875
7
+ data.tar.gz: 77f63935c4fcf8355aae3ac771da5fc4225f5c790547b82966ab45611f5adef6e1448b3e70d53d47efc233db5a5b12870d2d6476213ae2a4e9d2539f636fd306
@@ -13,13 +13,10 @@ if defined?(Encoding) && Encoding.respond_to?(:default_internal=) # String.insta
13
13
  end
14
14
 
15
15
  $LOAD_PATH.unshift File.expand_path('vendor/thor/lib', File.dirname(__FILE__))
16
- $LOAD_PATH.unshift File.expand_path('vendor/systemu/lib', File.dirname(__FILE__))
17
16
  $LOAD_PATH.unshift File.expand_path('vendor/escape/lib', File.dirname(__FILE__))
18
- $LOAD_PATH.unshift File.expand_path('vendor/json_pure/lib', File.dirname(__FILE__))
19
- $LOAD_PATH.unshift File.expand_path('vendor/multi_json/lib', File.dirname(__FILE__))
20
17
 
21
18
  require 'escape'
22
- require 'multi_json'
19
+ require 'json'
23
20
  require 'uri'
24
21
 
25
22
  require 'engineyard-serverside/version'
@@ -39,7 +36,7 @@ module EY
39
36
  RemoteFailure = Class.new StandardError
40
37
 
41
38
  def self.node
42
- @node ||= deep_indifferentize(MultiJson.load(dna_json))
39
+ @node ||= deep_indifferentize(JSON.load(dna_json))
43
40
  end
44
41
 
45
42
  def self.dna_json
@@ -1,4 +1,4 @@
1
- require 'multi_json'
1
+ require 'json'
2
2
  require 'thor'
3
3
  require 'pp'
4
4
  require 'yaml'
@@ -131,7 +131,7 @@ module EY
131
131
 
132
132
  def initialize(options)
133
133
  opts = string_keys(options)
134
- config = MultiJson.load(opts.delete("config") || "{}")
134
+ config = JSON.load(opts.delete("config") || "{}")
135
135
  append_config_source opts # high priority
136
136
  append_config_source config # lower priority
137
137
  end
@@ -216,7 +216,7 @@ module EY
216
216
  end
217
217
 
218
218
  def to_json
219
- MultiJson.dump(configuration)
219
+ JSON.dump(configuration)
220
220
  end
221
221
 
222
222
  def node
@@ -1,6 +1,7 @@
1
1
  # Inspired by capistrano, thanks Jamis!
2
2
  require 'base64'
3
- require 'multi_json'
3
+ #require 'multi_json'
4
+ require 'json'
4
5
  require 'engineyard-serverside/rails_assets'
5
6
  require 'engineyard-serverside/maintenance'
6
7
  require 'engineyard-serverside/dependency_manager'
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module Serverside
3
- VERSION = '2.8.0'
3
+ VERSION = '3.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-serverside
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - EY Cloud Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-20 00:00:00.000000000 Z
11
+ date: 2021-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 10.0.0
41
- - !ruby/object:Gem::Dependency
42
- name: rdoc
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 4.2.2
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 4.2.2
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: timecop
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -122,48 +108,34 @@ dependencies:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
110
  version: 1.3.13
125
- - !ruby/object:Gem::Dependency
126
- name: mime-types
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '1.25'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '1.25'
139
111
  - !ruby/object:Gem::Dependency
140
112
  name: json
141
113
  requirement: !ruby/object:Gem::Requirement
142
114
  requirements:
143
- - - "<"
115
+ - - '='
144
116
  - !ruby/object:Gem::Version
145
- version: '2'
117
+ version: 2.5.1
146
118
  type: :development
147
119
  prerelease: false
148
120
  version_requirements: !ruby/object:Gem::Requirement
149
121
  requirements:
150
- - - "<"
122
+ - - '='
151
123
  - !ruby/object:Gem::Version
152
- version: '2'
124
+ version: 2.5.1
153
125
  - !ruby/object:Gem::Dependency
154
126
  name: cucumber
155
127
  requirement: !ruby/object:Gem::Requirement
156
128
  requirements:
157
129
  - - "~>"
158
130
  - !ruby/object:Gem::Version
159
- version: 1.3.20
131
+ version: 4.0.0
160
132
  type: :development
161
133
  prerelease: false
162
134
  version_requirements: !ruby/object:Gem::Requirement
163
135
  requirements:
164
136
  - - "~>"
165
137
  - !ruby/object:Gem::Version
166
- version: 1.3.20
138
+ version: 4.0.0
167
139
  - !ruby/object:Gem::Dependency
168
140
  name: contracts
169
141
  requirement: !ruby/object:Gem::Requirement
@@ -231,12 +203,9 @@ files:
231
203
  - bin/engineyard-serverside
232
204
  - bin/engineyard-serverside-execute-hook
233
205
  - bin/engineyard-serverside-execute-service-hook
234
- - features/enable_maintenance/step_definitions/enable_maintenance_steps.rb
235
206
  - features/hook/running-a-deploy-hook.feature
236
207
  - features/hook/step_definitions/running-a-deploy-hook-steps.rb
237
- - features/step_definitions/app_steps.rb
238
208
  - features/step_definitions/command_steps.rb
239
- - features/step_definitions/server_steps.rb
240
209
  - features/step_definitions/version_steps.rb
241
210
  - features/support/env.rb
242
211
  - features/support/error_codes.rb
@@ -331,52 +300,6 @@ files:
331
300
  - lib/vendor/escape/Readme
332
301
  - lib/vendor/escape/doc_include/template/qualitysmith.rb
333
302
  - lib/vendor/escape/lib/escape.rb
334
- - lib/vendor/json_pure/COPYING
335
- - lib/vendor/json_pure/GPL
336
- - lib/vendor/json_pure/README.rdoc
337
- - lib/vendor/json_pure/VERSION
338
- - lib/vendor/json_pure/lib/json.rb
339
- - lib/vendor/json_pure/lib/json/add/bigdecimal.rb
340
- - lib/vendor/json_pure/lib/json/add/complex.rb
341
- - lib/vendor/json_pure/lib/json/add/core.rb
342
- - lib/vendor/json_pure/lib/json/add/date.rb
343
- - lib/vendor/json_pure/lib/json/add/date_time.rb
344
- - lib/vendor/json_pure/lib/json/add/exception.rb
345
- - lib/vendor/json_pure/lib/json/add/ostruct.rb
346
- - lib/vendor/json_pure/lib/json/add/range.rb
347
- - lib/vendor/json_pure/lib/json/add/rational.rb
348
- - lib/vendor/json_pure/lib/json/add/regexp.rb
349
- - lib/vendor/json_pure/lib/json/add/struct.rb
350
- - lib/vendor/json_pure/lib/json/add/symbol.rb
351
- - lib/vendor/json_pure/lib/json/add/time.rb
352
- - lib/vendor/json_pure/lib/json/common.rb
353
- - lib/vendor/json_pure/lib/json/ext.rb
354
- - lib/vendor/json_pure/lib/json/generic_object.rb
355
- - lib/vendor/json_pure/lib/json/pure.rb
356
- - lib/vendor/json_pure/lib/json/pure/generator.rb
357
- - lib/vendor/json_pure/lib/json/pure/parser.rb
358
- - lib/vendor/json_pure/lib/json/version.rb
359
- - lib/vendor/multi_json/CHANGELOG.md
360
- - lib/vendor/multi_json/CONTRIBUTING.md
361
- - lib/vendor/multi_json/Gemfile
362
- - lib/vendor/multi_json/LICENSE.md
363
- - lib/vendor/multi_json/README.md
364
- - lib/vendor/multi_json/Rakefile
365
- - lib/vendor/multi_json/lib/multi_json.rb
366
- - lib/vendor/multi_json/lib/multi_json/adapters/gson.rb
367
- - lib/vendor/multi_json/lib/multi_json/adapters/json_common.rb
368
- - lib/vendor/multi_json/lib/multi_json/adapters/json_gem.rb
369
- - lib/vendor/multi_json/lib/multi_json/adapters/json_pure.rb
370
- - lib/vendor/multi_json/lib/multi_json/adapters/nsjsonserialization.rb
371
- - lib/vendor/multi_json/lib/multi_json/adapters/oj.rb
372
- - lib/vendor/multi_json/lib/multi_json/adapters/ok_json.rb
373
- - lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb
374
- - lib/vendor/multi_json/lib/multi_json/vendor/okjson.rb
375
- - lib/vendor/multi_json/lib/multi_json/version.rb
376
- - lib/vendor/multi_json/spec/adapter_shared_example.rb
377
- - lib/vendor/multi_json/spec/helper.rb
378
- - lib/vendor/multi_json/spec/json_common_shared_example.rb
379
- - lib/vendor/multi_json/spec/multi_json_spec.rb
380
303
  - lib/vendor/thor/LICENSE.md
381
304
  - lib/vendor/thor/README.md
382
305
  - lib/vendor/thor/bin/rake2thor
@@ -469,74 +392,71 @@ required_ruby_version: !ruby/object:Gem::Requirement
469
392
  requirements:
470
393
  - - ">="
471
394
  - !ruby/object:Gem::Version
472
- version: '0'
395
+ version: 2.3.0
473
396
  required_rubygems_version: !ruby/object:Gem::Requirement
474
397
  requirements:
475
398
  - - ">="
476
399
  - !ruby/object:Gem::Version
477
400
  version: 1.3.6
478
401
  requirements: []
479
- rubygems_version: 3.0.3
402
+ rubygems_version: 3.2.15
480
403
  signing_key:
481
404
  specification_version: 4
482
405
  summary: A gem that deploys ruby applications on EY Cloud instances
483
406
  test_files:
484
- - spec/result_spec.rb
485
- - spec/railway_spec.rb
486
- - spec/engineyard-serverside/shell_spec.rb
487
- - spec/engineyard-serverside/source_spec.rb
488
- - spec/engineyard-serverside/callbacks/executor_spec.rb
489
- - spec/engineyard-serverside/callbacks/distributor_spec.rb
490
407
  - spec/engineyard-serverside/callbacks/collection/combined_spec.rb
491
408
  - spec/engineyard-serverside/callbacks/collection/deploy_hooks_spec.rb
492
- - spec/engineyard-serverside/callbacks/collection/service_hooks/combined_spec.rb
493
409
  - spec/engineyard-serverside/callbacks/collection/service_hooks/collection_spec.rb
410
+ - spec/engineyard-serverside/callbacks/collection/service_hooks/combined_spec.rb
494
411
  - spec/engineyard-serverside/callbacks/collection/service_hooks_spec.rb
495
412
  - spec/engineyard-serverside/callbacks/collection_spec.rb
496
- - spec/engineyard-serverside/callbacks/distributor/viability_filter_spec.rb
497
413
  - spec/engineyard-serverside/callbacks/distributor/remote_spec.rb
414
+ - spec/engineyard-serverside/callbacks/distributor/viability_filter_spec.rb
415
+ - spec/engineyard-serverside/callbacks/distributor_spec.rb
498
416
  - spec/engineyard-serverside/callbacks/executor/executable_spec.rb
499
- - spec/engineyard-serverside/callbacks/executor/ruby/executor_spec.rb
500
417
  - spec/engineyard-serverside/callbacks/executor/ruby/context_spec.rb
418
+ - spec/engineyard-serverside/callbacks/executor/ruby/executor_spec.rb
501
419
  - spec/engineyard-serverside/callbacks/executor/ruby_spec.rb
502
- - spec/engineyard-serverside/shell/helpers_spec.rb
503
- - spec/engineyard-serverside/shell/yieldio_spec.rb
420
+ - spec/engineyard-serverside/callbacks/executor_spec.rb
504
421
  - spec/engineyard-serverside/callbacks_spec.rb
505
- - spec/engineyard-serverside/paths_spec.rb
506
- - spec/engineyard-serverside/slug/failure_handler_spec.rb
507
- - spec/engineyard-serverside/slug/restarter_spec.rb
508
- - spec/engineyard-serverside/slug/enabler_spec.rb
509
- - spec/engineyard-serverside/slug/source_spec.rb
510
- - spec/engineyard-serverside/slug/generator_spec.rb
511
- - spec/engineyard-serverside/slug/finalizer_spec.rb
512
- - spec/engineyard-serverside/slug/distributor_spec.rb
513
- - spec/engineyard-serverside/slug/source/updater_spec.rb
514
- - spec/engineyard-serverside/slug/migrator_spec.rb
515
- - spec/engineyard-serverside/propagator_spec.rb
516
- - spec/engineyard-serverside/server_spec.rb
517
- - spec/engineyard-serverside/cli/workflows_spec.rb
518
422
  - spec/engineyard-serverside/cli/workflows/base_spec.rb
519
- - spec/engineyard-serverside/cli/workflows/rolling_back_applications_spec.rb
423
+ - spec/engineyard-serverside/cli/workflows/calling_deploy_hooks_spec.rb
424
+ - spec/engineyard-serverside/cli/workflows/deploying_applications_spec.rb
520
425
  - spec/engineyard-serverside/cli/workflows/disabling_maintenance_spec.rb
426
+ - spec/engineyard-serverside/cli/workflows/enabling_maintenance_spec.rb
521
427
  - spec/engineyard-serverside/cli/workflows/helpers_spec.rb
522
- - spec/engineyard-serverside/cli/workflows/deploying_applications_spec.rb
523
- - spec/engineyard-serverside/cli/workflows/calling_deploy_hooks_spec.rb
428
+ - spec/engineyard-serverside/cli/workflows/rolling_back_applications_spec.rb
524
429
  - spec/engineyard-serverside/cli/workflows/showing_maintenance_status_spec.rb
525
- - spec/engineyard-serverside/cli/workflows/enabling_maintenance_spec.rb
430
+ - spec/engineyard-serverside/cli/workflows_spec.rb
526
431
  - spec/engineyard-serverside/dependency_manager/base_spec.rb
527
- - spec/spec_helper.rb
528
- - spec/result/success_spec.rb
432
+ - spec/engineyard-serverside/paths_spec.rb
433
+ - spec/engineyard-serverside/propagator_spec.rb
434
+ - spec/engineyard-serverside/server_spec.rb
435
+ - spec/engineyard-serverside/shell/helpers_spec.rb
436
+ - spec/engineyard-serverside/shell/yieldio_spec.rb
437
+ - spec/engineyard-serverside/shell_spec.rb
438
+ - spec/engineyard-serverside/slug/distributor_spec.rb
439
+ - spec/engineyard-serverside/slug/enabler_spec.rb
440
+ - spec/engineyard-serverside/slug/failure_handler_spec.rb
441
+ - spec/engineyard-serverside/slug/finalizer_spec.rb
442
+ - spec/engineyard-serverside/slug/generator_spec.rb
443
+ - spec/engineyard-serverside/slug/migrator_spec.rb
444
+ - spec/engineyard-serverside/slug/restarter_spec.rb
445
+ - spec/engineyard-serverside/slug/source/updater_spec.rb
446
+ - spec/engineyard-serverside/slug/source_spec.rb
447
+ - spec/engineyard-serverside/source_spec.rb
448
+ - spec/railway_spec.rb
529
449
  - spec/result/failure_spec.rb
530
- - features/version.feature
450
+ - spec/result/success_spec.rb
451
+ - spec/result_spec.rb
452
+ - spec/spec_helper.rb
453
+ - features/hook/running-a-deploy-hook.feature
454
+ - features/hook/step_definitions/running-a-deploy-hook-steps.rb
531
455
  - features/step_definitions/command_steps.rb
532
- - features/step_definitions/server_steps.rb
533
456
  - features/step_definitions/version_steps.rb
534
- - features/step_definitions/app_steps.rb
535
- - features/enable_maintenance/step_definitions/enable_maintenance_steps.rb
536
- - features/hook/step_definitions/running-a-deploy-hook-steps.rb
537
- - features/hook/running-a-deploy-hook.feature
457
+ - features/support/env.rb
458
+ - features/support/error_codes.rb
538
459
  - features/support/fs_helpers.rb
539
- - features/support/runner.rb
540
460
  - features/support/output_helpers.rb
541
- - features/support/error_codes.rb
542
- - features/support/env.rb
461
+ - features/support/runner.rb
462
+ - features/version.feature
@@ -1,43 +0,0 @@
1
- def servers
2
- recall_fact(:servers)
3
- end
4
-
5
- Then %{I see output indicating the enable_maintenance workflow was performed} do
6
- expect(output_text).to include('maintenance page')
7
- end
8
-
9
- Given %{public/system is a symlink to the shared system} do
10
- system_path.rmtree if system_path.exist?
11
-
12
- setup_system_link
13
- end
14
-
15
- def instances
16
- servers.map {|server| server[:hostname]}
17
- end
18
-
19
- def instance_names
20
- servers.map {|server| "#{server[:hostname]}:#{server[:name]}"}
21
- end
22
-
23
- def instance_roles
24
- servers.map {|server| "#{server[:hostname]}:#{server[:roles].join(',')}"}
25
- end
26
-
27
- When %{I run the enable_maintenance command} do
28
- instances_flag = (['--instances'] + instances).join(' ')
29
- instance_names_flag = (['--instance-names'] + instance_names).join(' ')
30
- instance_roles_flag = (['--instance-roles'] + instance_roles).join(' ')
31
-
32
- step %{I run `engineyard-serverside enable_maintenance --account-name #{account_name} --app #{app_name} --environment-name #{env_name} #{instances_flag} #{instance_names_flag} #{instance_roles_flag}`}
33
- end
34
-
35
- Then %{maintenance is enabled remotely on the solo server} do
36
- servers.select {|x| x[:roles].include?('solo')}.each do |server|
37
- expect(ExecutedCommands.maintenance_enabled?(server[:hostname])).to eql(true)
38
- end
39
- end
40
-
41
- Then %{I see a notice that maintenance has been enabled} do
42
- expect(output_text).to include('Maintenance page enabled')
43
- end
@@ -1,10 +0,0 @@
1
- def setup_release
2
- setup_public_path
3
- setup_system_link
4
- setup_shared_system_path
5
- setup_shared_app_path
6
- end
7
-
8
- Given %(I've previously deployed my app) do
9
- setup_release
10
- end
@@ -1,14 +0,0 @@
1
- Given %{my environment has the following servers:} do |dataset|
2
- servers = []
3
- dataset.hashes.each do |row|
4
- servers.push(
5
- {
6
- :hostname => row['Hostname'],
7
- :name => row['Name'].strip,
8
- :roles => row['Roles'].split(',').map{|s| s.strip},
9
- }
10
- )
11
- end
12
-
13
- memorize_fact(:servers, servers)
14
- end
@@ -1,57 +0,0 @@
1
- Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.co.jp>.
2
- You can redistribute it and/or modify it under either the terms of the GPL
3
- (see GPL file), or the conditions below:
4
-
5
- 1. You may make and give away verbatim copies of the source form of the
6
- software without restriction, provided that you duplicate all of the
7
- original copyright notices and associated disclaimers.
8
-
9
- 2. You may modify your copy of the software in any way, provided that
10
- you do at least ONE of the following:
11
-
12
- a) place your modifications in the Public Domain or otherwise
13
- make them Freely Available, such as by posting said
14
- modifications to Usenet or an equivalent medium, or by allowing
15
- the author to include your modifications in the software.
16
-
17
- b) use the modified software only within your corporation or
18
- organization.
19
-
20
- c) rename any non-standard executables so the names do not conflict
21
- with standard executables, which must also be provided.
22
-
23
- d) make other distribution arrangements with the author.
24
-
25
- 3. You may distribute the software in object code or executable
26
- form, provided that you do at least ONE of the following:
27
-
28
- a) distribute the executables and library files of the software,
29
- together with instructions (in the manual page or equivalent)
30
- on where to get the original distribution.
31
-
32
- b) accompany the distribution with the machine-readable source of
33
- the software.
34
-
35
- c) give non-standard executables non-standard names, with
36
- instructions on where to get the original software distribution.
37
-
38
- d) make other distribution arrangements with the author.
39
-
40
- 4. You may modify and include the part of the software into any other
41
- software (possibly commercial). But some files in the distribution
42
- are not written by the author, so that they are not under this terms.
43
-
44
- They are gc.c(partly), utils.c(partly), regex.[ch], st.[ch] and some
45
- files under the ./missing directory. See each file for the copying
46
- condition.
47
-
48
- 5. The scripts and library files supplied as input to or produced as
49
- output from the software do not automatically fall under the
50
- copyright of the software, but belong to whomever generated them,
51
- and may be sold commercially, and may be aggregated with this
52
- software.
53
-
54
- 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
55
- IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
56
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
57
- PURPOSE.