proctor 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Proctorfile +4 -0
- data/README.md +97 -2
- data/Rakefile +15 -1
- data/bin/proctor +92 -88
- data/lib/proctor/app_config.rb +23 -0
- data/lib/proctor/app_file.rb +40 -1
- data/lib/proctor/cmd_state.rb +39 -0
- data/lib/proctor/manager.rb +8 -2
- data/lib/proctor/presenter/list.rb +67 -0
- data/lib/proctor/presenter/render.rb +39 -0
- data/lib/proctor/presenter/show.rb +71 -0
- data/lib/proctor/service.rb +8 -0
- data/lib/proctor/template_config.rb +22 -0
- data/lib/proctor/template_file.rb +44 -0
- data/lib/proctor/version.rb +1 -1
- data/lib/proctor.rb +1 -1
- data/proctor/Proctorfile +44 -20
- data/proctor/templates/foreman_default_n.erb +9 -0
- data/proctor/templates/monit_default_s.erb +6 -0
- data/proctor/templates/monit_faye_s.erb +7 -0
- data/{lib/proctor/app_global.rb → proctor/templates/monit_web_s.erb} +0 -0
- data/{lib/proctor/config_global.rb → proctor/templates/upstart_default_n.erb} +0 -0
- data/proctor/templates/upstart_default_s.erb +7 -0
- data/proctor/templates/upstart_faye_s.erb +9 -0
- data/proctor/{managers/MonitDefault.rb → templates/upstart_passenger_s.erb} +0 -0
- data/proctor.gemspec +2 -0
- data/spec/acceptance/help_spec.rb +17 -1
- data/spec/acceptance/list_spec.rb +17 -0
- data/spec/spec_helper.rb +7 -4
- data/spec/support/aruba.rb +2 -2
- data/spec/unit/app_config_spec.rb +30 -0
- data/spec/unit/app_file_spec.rb +36 -5
- data/spec/unit/manager_spec.rb +16 -7
- data/spec/unit/service_spec.rb +20 -0
- data/spec/unit/template_config_spec.rb +12 -0
- data/spec/unit/template_file_spec.rb +16 -0
- data/spec/unit/template_spec.rb +3 -2
- metadata +61 -25
- data/lib/proctor/config_file.rb +0 -5
- data/lib/proctor/export.rb +0 -5
- data/lib/proctor/job.rb +0 -4
- data/proctor/managers/MonitFaye.rb +0 -0
- data/proctor/managers/MonitWeb.rb +0 -0
- data/proctor/managers/UpstartDefault.rb +0 -0
- data/proctor/managers/UpstartFaye.rb +0 -0
- data/proctor/managers/UpstartWeb.rb +0 -0
- data/proctor/templates/monit_default.erb +0 -0
- data/proctor/templates/monit_faye.erb +0 -0
- data/proctor/templates/monit_web.erb +0 -0
- data/proctor/templates/upstart_default.erb +0 -0
- data/proctor/templates/upstart_faye.erb +0 -0
- data/proctor/templates/upstart_web.erb +0 -0
- data/spec/unit/config_file_spec.rb +0 -9
- data/spec/unit/export_spec.rb +0 -9
- data/spec/unit/job_spec.rb +0 -9
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proctor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gli
|
@@ -43,6 +43,22 @@ dependencies:
|
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: hash-deep-merge
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
46
62
|
- !ruby/object:Gem::Dependency
|
47
63
|
name: rake
|
48
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,6 +123,22 @@ dependencies:
|
|
107
123
|
- - ! '>='
|
108
124
|
- !ruby/object:Gem::Version
|
109
125
|
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: debugger
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
110
142
|
description: ! 'Proctor: a Process Manager'
|
111
143
|
email:
|
112
144
|
- andy@r210.com
|
@@ -119,42 +151,44 @@ files:
|
|
119
151
|
- .rspec
|
120
152
|
- Gemfile
|
121
153
|
- LICENSE
|
154
|
+
- Proctorfile
|
122
155
|
- README.md
|
123
156
|
- Rakefile
|
124
157
|
- bin/proctor
|
125
158
|
- lib/proctor.rb
|
159
|
+
- lib/proctor/app_config.rb
|
126
160
|
- lib/proctor/app_file.rb
|
127
|
-
- lib/proctor/
|
128
|
-
- lib/proctor/config_file.rb
|
129
|
-
- lib/proctor/config_global.rb
|
130
|
-
- lib/proctor/export.rb
|
131
|
-
- lib/proctor/job.rb
|
161
|
+
- lib/proctor/cmd_state.rb
|
132
162
|
- lib/proctor/manager.rb
|
163
|
+
- lib/proctor/presenter/list.rb
|
164
|
+
- lib/proctor/presenter/render.rb
|
165
|
+
- lib/proctor/presenter/show.rb
|
166
|
+
- lib/proctor/service.rb
|
133
167
|
- lib/proctor/template.rb
|
168
|
+
- lib/proctor/template_config.rb
|
169
|
+
- lib/proctor/template_file.rb
|
134
170
|
- lib/proctor/util.rb
|
135
171
|
- lib/proctor/version.rb
|
136
172
|
- proctor.gemspec
|
137
173
|
- proctor/Proctorfile
|
138
|
-
- proctor/
|
139
|
-
- proctor/
|
140
|
-
- proctor/
|
141
|
-
- proctor/
|
142
|
-
- proctor/
|
143
|
-
- proctor/
|
144
|
-
- proctor/templates/
|
145
|
-
- proctor/templates/
|
146
|
-
- proctor/templates/monit_web.erb
|
147
|
-
- proctor/templates/upstart_default.erb
|
148
|
-
- proctor/templates/upstart_faye.erb
|
149
|
-
- proctor/templates/upstart_web.erb
|
174
|
+
- proctor/templates/foreman_default_n.erb
|
175
|
+
- proctor/templates/monit_default_s.erb
|
176
|
+
- proctor/templates/monit_faye_s.erb
|
177
|
+
- proctor/templates/monit_web_s.erb
|
178
|
+
- proctor/templates/upstart_default_n.erb
|
179
|
+
- proctor/templates/upstart_default_s.erb
|
180
|
+
- proctor/templates/upstart_faye_s.erb
|
181
|
+
- proctor/templates/upstart_passenger_s.erb
|
150
182
|
- spec/acceptance/help_spec.rb
|
183
|
+
- spec/acceptance/list_spec.rb
|
151
184
|
- spec/spec_helper.rb
|
152
185
|
- spec/support/aruba.rb
|
186
|
+
- spec/unit/app_config_spec.rb
|
153
187
|
- spec/unit/app_file_spec.rb
|
154
|
-
- spec/unit/config_file_spec.rb
|
155
|
-
- spec/unit/export_spec.rb
|
156
|
-
- spec/unit/job_spec.rb
|
157
188
|
- spec/unit/manager_spec.rb
|
189
|
+
- spec/unit/service_spec.rb
|
190
|
+
- spec/unit/template_config_spec.rb
|
191
|
+
- spec/unit/template_file_spec.rb
|
158
192
|
- spec/unit/template_spec.rb
|
159
193
|
homepage: http://github.com/andyl/proctor
|
160
194
|
licenses: []
|
@@ -182,11 +216,13 @@ specification_version: 3
|
|
182
216
|
summary: Generates conf files for upstart and monit.
|
183
217
|
test_files:
|
184
218
|
- spec/acceptance/help_spec.rb
|
219
|
+
- spec/acceptance/list_spec.rb
|
185
220
|
- spec/spec_helper.rb
|
186
221
|
- spec/support/aruba.rb
|
222
|
+
- spec/unit/app_config_spec.rb
|
187
223
|
- spec/unit/app_file_spec.rb
|
188
|
-
- spec/unit/config_file_spec.rb
|
189
|
-
- spec/unit/export_spec.rb
|
190
|
-
- spec/unit/job_spec.rb
|
191
224
|
- spec/unit/manager_spec.rb
|
225
|
+
- spec/unit/service_spec.rb
|
226
|
+
- spec/unit/template_config_spec.rb
|
227
|
+
- spec/unit/template_file_spec.rb
|
192
228
|
- spec/unit/template_spec.rb
|
data/lib/proctor/config_file.rb
DELETED
data/lib/proctor/export.rb
DELETED
data/lib/proctor/job.rb
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,9 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require_relative "../../lib/proctor/config_file"
|
3
|
-
|
4
|
-
describe Proctor::ConfigFile do
|
5
|
-
it "should raise an error on bad format"
|
6
|
-
it "should have a list of valid object types"
|
7
|
-
it "should raise warnings for invalid objects"
|
8
|
-
it "should support a --no-warn field"
|
9
|
-
end
|
data/spec/unit/export_spec.rb
DELETED