Class: Bane::Launcher

Inherits:
Object
  • Object
show all
Defined in:
lib/bane/launcher.rb

Instance Method Summary collapse

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

#joinObject



16
17
18
# File 'lib/bane/launcher.rb', line 16

def join
  @servers.each { |server| server.join }
end

#startObject



12
13
14
# File 'lib/bane/launcher.rb', line 12

def start
  @servers.each { |server| server.start }
end

#stopObject



20
21
22
# File 'lib/bane/launcher.rb', line 20

def stop
  @servers.each { |server| server.stop }
end