ruby-style 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README +7 -3
  2. data/lib/style.rb +4 -2
  3. metadata +40 -33
data/README CHANGED
@@ -37,7 +37,7 @@ Source control access is available at github
37
37
  To see the available commands and possible and default configuration options,
38
38
  just run the program without any arguments:
39
39
 
40
- style [option value, ...] (decrement|halt|increment|restart|start|stop)
40
+ style [option value, ...] (decrement|halt|increment|restart|run|start|stop)
41
41
  Options:
42
42
  -a, --adapter Adapter/Framework to use [rails]
43
43
  -b, --bind IP address to bind to [127.0.0.1]
@@ -59,11 +59,15 @@ Here's what the various commands do:
59
59
  * halt (TERM) - Immediately shutdown the child processes and exit
60
60
  * increment (USR1) - Increase the number of listeners per port by 1
61
61
  * restart (HUP) - Replace the current listeners with new listeners
62
+ * run - Runs the supervisor and listening processes without detaching
62
63
  * start - Starts the supervisor process and the listening processes
63
64
  * stop (INT) - Gracefully shutdown the child processes and exit
64
65
 
65
- All commands except start just send the listed signal to the preexisting
66
- supervisor process specified in the pid file.
66
+ All commands except start and run just send the listed signal to the
67
+ preexisting supervisor process specified in the pid file.
68
+
69
+ The signals can be sent directly to style when started with the run command,
70
+ which is the natural way to use style with runit or daemontools.
67
71
 
68
72
  Note that the -d (--directory) option changes the working directory of the
69
73
  process, so the -c, -l, and -P options are relative to that.
@@ -196,6 +196,8 @@ class Style
196
196
  signal_supervisor(:USR1)
197
197
  when 'restart'
198
198
  signal_supervisor(:HUP)
199
+ when 'run'
200
+ supervisor_loop
199
201
  when 'start'
200
202
  supervisor_start
201
203
  when 'stop'
@@ -209,7 +211,7 @@ class Style
209
211
  # are supported.
210
212
  def process_unsupervised_command(command)
211
213
  case command
212
- when /\A(decrement|increment)\z/
214
+ when /\A(decrement|increment|run)\z/
213
215
  puts "#{$1} not supported in unsupervised mode"
214
216
  exit(1)
215
217
  when 'restart'
@@ -456,7 +458,7 @@ class Style
456
458
  # The command line usage of the style program
457
459
  def usage
458
460
  <<-END
459
- style [option value, ...] (decrement|halt|increment|restart|start|stop)
461
+ style [option value, ...] (decrement|halt|increment|restart|run|start|stop)
460
462
  Options:
461
463
  -a, --adapter Adapter/Framework to use [rails]
462
464
  -b, --bind IP address to bind to [127.0.0.1]
metadata CHANGED
@@ -1,33 +1,26 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.4
3
- specification_version: 1
4
2
  name: ruby-style
5
3
  version: !ruby/object:Gem::Version
6
- version: 1.1.4
7
- date: 2008-04-29 00:00:00 -07:00
8
- summary: Supervised TCPServer, Yielding Listeners Easily
9
- require_paths:
10
- - lib
11
- email: code@jeremyevans.net
12
- homepage:
13
- rubyforge_project: ruby-style
14
- description:
15
- autorequire:
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
4
+ version: 1.1.5
25
5
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
- post_install_message:
29
6
  authors:
30
7
  - Jeremy Evans
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-05-09 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description:
17
+ email: code@jeremyevans.net
18
+ executables:
19
+ - style
20
+ extensions: []
21
+
22
+ extra_rdoc_files: []
23
+
31
24
  files:
32
25
  - LICENSE
33
26
  - README
@@ -40,20 +33,34 @@ files:
40
33
  - lib/style/handler/mongrel.rb
41
34
  - lib/style/handler/scgi.rb
42
35
  - lib/style/handler/thin.rb
43
- test_files: []
44
-
36
+ has_rdoc: true
37
+ homepage:
38
+ post_install_message:
45
39
  rdoc_options:
46
40
  - --inline-source
47
41
  - --line-numbers
48
42
  - README
49
43
  - lib
50
- extra_rdoc_files: []
51
-
52
- executables:
53
- - style
54
- extensions: []
55
-
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: "0"
51
+ version:
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: "0"
57
+ version:
56
58
  requirements: []
57
59
 
58
- dependencies: []
60
+ rubyforge_project: ruby-style
61
+ rubygems_version: 1.0.1
62
+ signing_key:
63
+ specification_version: 2
64
+ summary: Supervised TCPServer, Yielding Listeners Easily
65
+ test_files: []
59
66