Project

General

Profile

« Previous | Next » 

Revision 1c89625f

Added by Marc Dequènes over 13 years ago

  • ID 1c89625f86dc33b7cff7f63ceb1e73da27eeb073

[evol] work on cyborg server protocol and API #5 (refs #31)

View differences:

lib/cyborghood/cyborg/server.rb
if flags.index '?'
send_line "250+ ok"
send_line({'exists?' => @interface.has_node?(cmd)}.to_yaml)
send_line({'exists?' => @interface.find_node_action(cmd)}.to_yaml)
return
end
......
def receive_command(cmd, data = nil)
logger.debug "Executing command '#{cmd}' [#{identifier}]"
send_line @interface.instance.call(cmd, data)
send_line @interface.call(cmd, data)
end
def receive_error(msg)
......
end
def interface
EmptyInterface
EmptyInterface.instance
end
end
end

Also available in: Unified diff