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.
- data/lib/engineyard-serverside-adapter.rb +6 -6
- data/lib/engineyard-serverside-adapter/{enable_maintenance_page.rb → disable_maintenance.rb} +2 -2
- data/lib/engineyard-serverside-adapter/{disable_maintenance_page.rb → enable_maintenance.rb} +2 -2
- data/lib/engineyard-serverside-adapter/version.rb +2 -2
- data/spec/adapter_spec.rb +7 -7
- data/spec/{disable_maintenance_page_spec.rb → disable_maintenance_spec.rb} +2 -2
- data/spec/{enable_maintenance_page_spec.rb → enable_maintenance_spec.rb} +2 -2
- metadata +6 -6
@@ -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 :
|
12
|
-
autoload :
|
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
|
29
|
-
|
28
|
+
def disable_maintenance(&b)
|
29
|
+
DisableMaintenance.new(new_action_args, &b)
|
30
30
|
end
|
31
31
|
|
32
|
-
def
|
33
|
-
|
32
|
+
def enable_maintenance(&b)
|
33
|
+
EnableMaintenance.new(new_action_args, &b)
|
34
34
|
end
|
35
35
|
|
36
36
|
def integrate(&b)
|
data/lib/engineyard-serverside-adapter/{enable_maintenance_page.rb → disable_maintenance.rb}
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
module EY
|
2
2
|
module Serverside
|
3
3
|
class Adapter
|
4
|
-
class
|
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
|
-
['
|
15
|
+
['disable_maintenance']
|
16
16
|
end
|
17
17
|
|
18
18
|
end
|
data/lib/engineyard-serverside-adapter/{disable_maintenance_page.rb → enable_maintenance.rb}
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
module EY
|
2
2
|
module Serverside
|
3
3
|
class Adapter
|
4
|
-
class
|
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
|
-
['
|
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.
|
5
|
-
ENGINEYARD_SERVERSIDE_VERSION = ENV['ENGINEYARD_SERVERSIDE_VERSION'] || "2.0.0.
|
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
|
data/spec/adapter_spec.rb
CHANGED
@@ -93,8 +93,8 @@ describe EY::Serverside::Adapter do
|
|
93
93
|
|
94
94
|
[
|
95
95
|
:deploy,
|
96
|
-
:
|
97
|
-
:
|
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.
|
125
|
-
@adapter.
|
126
|
-
@adapter.deploy.should
|
127
|
-
@adapter.integrate.should
|
128
|
-
@adapter.rollback.should
|
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::
|
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
|
-
"
|
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::
|
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
|
-
"
|
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.
|
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
|
+
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/
|
100
|
-
- lib/engineyard-serverside-adapter/
|
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/
|
109
|
-
- spec/
|
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
|