Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
SIGINT causes an exception when executing with Ruby 2.0 but not with Ruby 1.9.3.
class MyServer < GServer
end
class Launcher
def initialize(servers)
@servers = servers
end
def start
@servers.each { |server| server.start }
end
def join
@servers.each { |server| server.join }
end
def stop
@servers.each { |server| server.stop }
end
end
launcher = Launcher.new(servers) // where servers is a collection of my_server
launcher.start
trap("SIGINT") { launcher.stop; exit }
launcher.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.