module EM::Nodes::Client::HelloFeature
Public Instance Methods
info()
click to toggle source
# File lib/em-nodes/client/hello.rb, line 10 def info {} # redefine me end
on_who_are_you?()
click to toggle source
# File lib/em-nodes/client/hello.rb, line 4 def on_who_are_you? i = info raise "info should be a Hash, but not #{i.inspect}" unless i.is_a?(Hash) send_i_am(i.merge(__default_info__)) end
Private Instance Methods
__default_info__()
click to toggle source
# File lib/em-nodes/client/hello.rb, line 16 def __default_info__ { :hostname => (`hostname` rescue "").chop } end