ey_stonith 0.4.3.pre → 0.4.3.pre.1

Sign up to get free protection for your applications and to get access to all the features.
data/ey_stonith.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "ey_stonith"
6
- s.version = "0.4.3.pre"
6
+ s.version = "0.4.3.pre.1"
7
7
  s.summary = "Shoot The Other Node In The Head (with a nerf gun)"
8
8
  s.description = s.summary
9
9
  s.has_rdoc = true
@@ -3,26 +3,26 @@ module EY
3
3
  module Commands
4
4
 
5
5
  dir = 'ey_stonith/commands/'
6
- require dir + 'abstract'
7
- require dir + 'not_found'
6
+ autoload :Abstract, dir + 'abstract'
7
+ autoload :NotFound, dir + 'not_found'
8
8
 
9
- COMMANDS = {
10
- 'check' => :Check,
11
- 'claim' => :Claim,
12
- 'commands' => :Commands,
13
- 'cron' => :Cron,
14
- 'help' => :Help,
15
- 'info' => :Info,
16
- 'notify' => :Notify,
17
- 'resume' => :Resume,
18
- 'reset' => :Reset,
19
- 'status' => :Status,
20
- 'stop' => :Stop,
21
- 'takeover' => :Takeover,
22
- }
9
+ COMMANDS = Hash.new(:NotFound).merge({
10
+ 'check' => :Check,
11
+ 'claim' => :Claim,
12
+ 'commands' => :Commands,
13
+ 'cron' => :Cron,
14
+ 'help' => :Help,
15
+ 'info' => :Info,
16
+ 'notify' => :Notify,
17
+ 'resume' => :Resume,
18
+ 'reset' => :Reset,
19
+ 'status' => :Status,
20
+ 'stop' => :Stop,
21
+ 'takeover' => :Takeover,
22
+ })
23
23
 
24
24
  COMMANDS.each do |command, klass|
25
- require dir + command
25
+ autoload klass, dir + command
26
26
  end
27
27
 
28
28
  def self.invoke(argv)
@@ -1,5 +1,5 @@
1
1
  module EY
2
- class Stonith
2
+ module Stonith
3
3
  class Timer
4
4
  def self.timeout(sec)
5
5
  if RUBY_VERSION =~ /^1\.8/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey_stonith
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3.pre
4
+ version: 0.4.3.pre.1
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -17,7 +17,7 @@ date: 2012-02-10 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: json
20
- requirement: &2153272820 !ruby/object:Gem::Requirement
20
+ requirement: &2153146280 !ruby/object:Gem::Requirement
21
21
  none: false
22
22
  requirements:
23
23
  - - ! '>='
@@ -25,10 +25,10 @@ dependencies:
25
25
  version: '0'
26
26
  type: :runtime
27
27
  prerelease: false
28
- version_requirements: *2153272820
28
+ version_requirements: *2153146280
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: sinatra
31
- requirement: &2153271720 !ruby/object:Gem::Requirement
31
+ requirement: &2153145080 !ruby/object:Gem::Requirement
32
32
  none: false
33
33
  requirements:
34
34
  - - ~>
@@ -36,10 +36,10 @@ dependencies:
36
36
  version: '1.0'
37
37
  type: :runtime
38
38
  prerelease: false
39
- version_requirements: *2153271720
39
+ version_requirements: *2153145080
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: ruby-debug19
42
- requirement: &2153270320 !ruby/object:Gem::Requirement
42
+ requirement: &2153143660 !ruby/object:Gem::Requirement
43
43
  none: false
44
44
  requirements:
45
45
  - - ! '>='
@@ -47,10 +47,10 @@ dependencies:
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
- version_requirements: *2153270320
50
+ version_requirements: *2153143660
51
51
  - !ruby/object:Gem::Dependency
52
52
  name: rspec
53
- requirement: &2153268700 !ruby/object:Gem::Requirement
53
+ requirement: &2153142120 !ruby/object:Gem::Requirement
54
54
  none: false
55
55
  requirements:
56
56
  - - ! '>='
@@ -58,10 +58,10 @@ dependencies:
58
58
  version: '0'
59
59
  type: :development
60
60
  prerelease: false
61
- version_requirements: *2153268700
61
+ version_requirements: *2153142120
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: cucumber
64
- requirement: &2153295920 !ruby/object:Gem::Requirement
64
+ requirement: &2153173620 !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
67
67
  - - ! '>='
@@ -69,10 +69,10 @@ dependencies:
69
69
  version: '0'
70
70
  type: :development
71
71
  prerelease: false
72
- version_requirements: *2153295920
72
+ version_requirements: *2153173620
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: open4
75
- requirement: &2153294740 !ruby/object:Gem::Requirement
75
+ requirement: &2153172520 !ruby/object:Gem::Requirement
76
76
  none: false
77
77
  requirements:
78
78
  - - ! '>='
@@ -80,10 +80,10 @@ dependencies:
80
80
  version: '0'
81
81
  type: :development
82
82
  prerelease: false
83
- version_requirements: *2153294740
83
+ version_requirements: *2153172520
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: aruba
86
- requirement: &2153293180 !ruby/object:Gem::Requirement
86
+ requirement: &2153170980 !ruby/object:Gem::Requirement
87
87
  none: false
88
88
  requirements:
89
89
  - - =
@@ -91,10 +91,10 @@ dependencies:
91
91
  version: 0.3.2
92
92
  type: :development
93
93
  prerelease: false
94
- version_requirements: *2153293180
94
+ version_requirements: *2153170980
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: rake
97
- requirement: &2153291660 !ruby/object:Gem::Requirement
97
+ requirement: &2153169320 !ruby/object:Gem::Requirement
98
98
  none: false
99
99
  requirements:
100
100
  - - ! '>='
@@ -102,10 +102,10 @@ dependencies:
102
102
  version: '0'
103
103
  type: :development
104
104
  prerelease: false
105
- version_requirements: *2153291660
105
+ version_requirements: *2153169320
106
106
  - !ruby/object:Gem::Dependency
107
107
  name: randexp
108
- requirement: &2153313960 !ruby/object:Gem::Requirement
108
+ requirement: &2153189760 !ruby/object:Gem::Requirement
109
109
  none: false
110
110
  requirements:
111
111
  - - ! '>='
@@ -113,10 +113,10 @@ dependencies:
113
113
  version: '0'
114
114
  type: :development
115
115
  prerelease: false
116
- version_requirements: *2153313960
116
+ version_requirements: *2153189760
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: cucumber
119
- requirement: &2153309540 !ruby/object:Gem::Requirement
119
+ requirement: &2153187400 !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements:
122
122
  - - ! '>='
@@ -124,10 +124,10 @@ dependencies:
124
124
  version: '0'
125
125
  type: :development
126
126
  prerelease: false
127
- version_requirements: *2153309540
127
+ version_requirements: *2153187400
128
128
  - !ruby/object:Gem::Dependency
129
129
  name: realweb
130
- requirement: &2153307420 !ruby/object:Gem::Requirement
130
+ requirement: &2153185060 !ruby/object:Gem::Requirement
131
131
  none: false
132
132
  requirements:
133
133
  - - ~>
@@ -135,10 +135,10 @@ dependencies:
135
135
  version: 0.1.4
136
136
  type: :development
137
137
  prerelease: false
138
- version_requirements: *2153307420
138
+ version_requirements: *2153185060
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rack-client
141
- requirement: &2153330980 !ruby/object:Gem::Requirement
141
+ requirement: &2153206000 !ruby/object:Gem::Requirement
142
142
  none: false
143
143
  requirements:
144
144
  - - ! '>='
@@ -146,7 +146,7 @@ dependencies:
146
146
  version: '0'
147
147
  type: :development
148
148
  prerelease: false
149
- version_requirements: *2153330980
149
+ version_requirements: *2153206000
150
150
  description: Shoot The Other Node In The Head (with a nerf gun)
151
151
  email: awsmdev@engineyard.com
152
152
  executables: