Sha256: 465e270181a2b7b918d29722c213eebca8722b0c008c4305000915d4c672797d
Contents?: true
Size: 738 Bytes
Versions: 3
Compression:
Stored size: 738 Bytes
Contents
module Pione module Command # FrontOwnerCommand is a parent of classes that own front server. class FrontOwnerCommand < BasicCommand define_option do option("--my-ip-address=ADDRESS", "set my IP address") do |data, address| Global.my_ip_address = address end end prepare do Global.front = create_front end # Create a front server. This method should be overridden in subclasses. # # @return [BasicFront] # front server def create_front raise NotImplementedError end terminate do Global.monitor.synchronize do # stop DRb service # DRb.stop_service end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pione-0.2.0 | lib/pione/command/front-owner-command.rb |
pione-0.1.4 | lib/pione/command/front-owner-command.rb |
pione-0.1.3 | lib/pione/command/front-owner-command.rb |