engineyard-serverside-adapter 2.0.0.pre4 → 2.0.0.pre5

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,8 +8,8 @@ module EY
8
8
  autoload :Arguments, 'engineyard-serverside-adapter/arguments'
9
9
  autoload :Command, 'engineyard-serverside-adapter/command'
10
10
  autoload :Deploy, 'engineyard-serverside-adapter/deploy'
11
- autoload :DisableMaintenancePage, 'engineyard-serverside-adapter/disable_maintenance_page'
12
- autoload :EnableMaintenancePage, 'engineyard-serverside-adapter/enable_maintenance_page'
11
+ autoload :DisableMaintenance, 'engineyard-serverside-adapter/disable_maintenance'
12
+ autoload :EnableMaintenance, 'engineyard-serverside-adapter/enable_maintenance'
13
13
  autoload :Integrate, 'engineyard-serverside-adapter/integrate'
14
14
  autoload :Restart, 'engineyard-serverside-adapter/restart'
15
15
  autoload :Rollback, 'engineyard-serverside-adapter/rollback'
@@ -25,12 +25,12 @@ module EY
25
25
  Deploy.new(new_action_args, &b)
26
26
  end
27
27
 
28
- def disable_maintenance_page(&b)
29
- DisableMaintenancePage.new(new_action_args, &b)
28
+ def disable_maintenance(&b)
29
+ DisableMaintenance.new(new_action_args, &b)
30
30
  end
31
31
 
32
- def enable_maintenance_page(&b)
33
- EnableMaintenancePage.new(new_action_args, &b)
32
+ def enable_maintenance(&b)
33
+ EnableMaintenance.new(new_action_args, &b)
34
34
  end
35
35
 
36
36
  def integrate(&b)
@@ -1,7 +1,7 @@
1
1
  module EY
2
2
  module Serverside
3
3
  class Adapter
4
- class EnableMaintenancePage < Action
4
+ class DisableMaintenance < Action
5
5
 
6
6
  option :app, :string, :required => true
7
7
  option :account_name, :string, :required => true
@@ -12,7 +12,7 @@ module EY
12
12
  private
13
13
 
14
14
  def task
15
- ['deploy', 'enable_maintenance_page']
15
+ ['disable_maintenance']
16
16
  end
17
17
 
18
18
  end
@@ -1,7 +1,7 @@
1
1
  module EY
2
2
  module Serverside
3
3
  class Adapter
4
- class DisableMaintenancePage < Action
4
+ class EnableMaintenance < Action
5
5
 
6
6
  option :app, :string, :required => true
7
7
  option :account_name, :string, :required => true
@@ -12,7 +12,7 @@ module EY
12
12
  private
13
13
 
14
14
  def task
15
- ['deploy', 'disable_maintenance_page']
15
+ ['enable_maintenance']
16
16
  end
17
17
 
18
18
  end
@@ -1,8 +1,8 @@
1
1
  module EY
2
2
  module Serverside
3
3
  class Adapter
4
- VERSION = "2.0.0.pre4"
5
- ENGINEYARD_SERVERSIDE_VERSION = ENV['ENGINEYARD_SERVERSIDE_VERSION'] || "2.0.0.pre4"
4
+ VERSION = "2.0.0.pre5"
5
+ ENGINEYARD_SERVERSIDE_VERSION = ENV['ENGINEYARD_SERVERSIDE_VERSION'] || "2.0.0.pre5"
6
6
  end
7
7
  end
8
8
  end
@@ -93,8 +93,8 @@ describe EY::Serverside::Adapter do
93
93
 
94
94
  [
95
95
  :deploy,
96
- :disable_maintenance_page,
97
- :enable_maintenance_page,
96
+ :disable_maintenance,
97
+ :enable_maintenance,
98
98
  :integrate,
99
99
  :restart,
100
100
  :rollback,
@@ -121,11 +121,11 @@ describe EY::Serverside::Adapter do
121
121
  end
122
122
 
123
123
  it "gives you the right command" do
124
- @adapter.enable_maintenance_page.should be_kind_of(EY::Serverside::Adapter::EnableMaintenancePage)
125
- @adapter.disable_maintenance_page.should be_kind_of(EY::Serverside::Adapter::DisableMaintenancePage)
126
- @adapter.deploy.should be_kind_of(EY::Serverside::Adapter::Deploy)
127
- @adapter.integrate.should be_kind_of(EY::Serverside::Adapter::Integrate)
128
- @adapter.rollback.should be_kind_of(EY::Serverside::Adapter::Rollback)
124
+ @adapter.enable_maintenance.should be_kind_of(EY::Serverside::Adapter::EnableMaintenance)
125
+ @adapter.disable_maintenance.should be_kind_of(EY::Serverside::Adapter::DisableMaintenance)
126
+ @adapter.deploy.should be_kind_of(EY::Serverside::Adapter::Deploy)
127
+ @adapter.integrate.should be_kind_of(EY::Serverside::Adapter::Integrate)
128
+ @adapter.rollback.should be_kind_of(EY::Serverside::Adapter::Rollback)
129
129
  end
130
130
  end
131
131
 
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe EY::Serverside::Adapter::DisableMaintenancePage do
3
+ describe EY::Serverside::Adapter::DisableMaintenance do
4
4
  it_should_behave_like "it installs engineyard-serverside"
5
5
 
6
6
  it_should_behave_like "it accepts app"
@@ -29,7 +29,7 @@ describe EY::Serverside::Adapter::DisableMaintenancePage do
29
29
  command.should == [
30
30
  "engineyard-serverside",
31
31
  "_#{EY::Serverside::Adapter::ENGINEYARD_SERVERSIDE_VERSION}_",
32
- "deploy disable_maintenance_page",
32
+ "disable_maintenance",
33
33
  "--account-name ey",
34
34
  "--app rackapp",
35
35
  "--environment-name rackapp_production",
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe EY::Serverside::Adapter::EnableMaintenancePage do
3
+ describe EY::Serverside::Adapter::EnableMaintenance do
4
4
  it_should_behave_like "it installs engineyard-serverside"
5
5
 
6
6
  it_should_behave_like "it accepts app"
@@ -30,7 +30,7 @@ describe EY::Serverside::Adapter::EnableMaintenancePage do
30
30
  command.should == [
31
31
  "engineyard-serverside",
32
32
  "_#{EY::Serverside::Adapter::ENGINEYARD_SERVERSIDE_VERSION}_",
33
- "deploy enable_maintenance_page",
33
+ "enable_maintenance",
34
34
  "--account-name ey",
35
35
  "--app rackapp",
36
36
  "--environment-name rackapp_production",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-serverside-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre4
4
+ version: 2.0.0.pre5
5
5
  prerelease: 6
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: 2012-06-13 00:00:00.000000000 Z
13
+ date: 2012-06-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: escape
@@ -96,8 +96,8 @@ files:
96
96
  - lib/engineyard-serverside-adapter/arguments.rb
97
97
  - lib/engineyard-serverside-adapter/command.rb
98
98
  - lib/engineyard-serverside-adapter/deploy.rb
99
- - lib/engineyard-serverside-adapter/disable_maintenance_page.rb
100
- - lib/engineyard-serverside-adapter/enable_maintenance_page.rb
99
+ - lib/engineyard-serverside-adapter/disable_maintenance.rb
100
+ - lib/engineyard-serverside-adapter/enable_maintenance.rb
101
101
  - lib/engineyard-serverside-adapter/integrate.rb
102
102
  - lib/engineyard-serverside-adapter/restart.rb
103
103
  - lib/engineyard-serverside-adapter/rollback.rb
@@ -105,8 +105,8 @@ files:
105
105
  - spec/adapter_spec.rb
106
106
  - spec/arguments_spec.rb
107
107
  - spec/deploy_spec.rb
108
- - spec/disable_maintenance_page_spec.rb
109
- - spec/enable_maintenance_page_spec.rb
108
+ - spec/disable_maintenance_spec.rb
109
+ - spec/enable_maintenance_spec.rb
110
110
  - spec/integrate_spec.rb
111
111
  - spec/restart_spec.rb
112
112
  - spec/rollback_spec.rb