Class: Bane::Launcher
- Inherits:
-
Object
- Object
- Bane::Launcher
- Defined in:
- lib/bane/launcher.rb
Instance Method Summary collapse
-
#initialize(servers, logger = $stderr) ⇒ Launcher
constructor
A new instance of Launcher.
- #join ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(servers, logger = $stderr) ⇒ Launcher
Returns a new instance of Launcher.
7 8 9 10 |
# File 'lib/bane/launcher.rb', line 7 def initialize(servers, logger = $stderr) @servers = servers @servers.each { |server| server.stdlog = logger } end |
Instance Method Details
#join ⇒ Object
16 17 18 |
# File 'lib/bane/launcher.rb', line 16 def join @servers.each { |server| server.join } end |
#start ⇒ Object
12 13 14 |
# File 'lib/bane/launcher.rb', line 12 def start @servers.each { |server| server.start } end |
#stop ⇒ Object
20 21 22 |
# File 'lib/bane/launcher.rb', line 20 def stop @servers.each { |server| server.stop } end |