Revision afdc8d97
Added by Marc Dequènes about 14 years ago
- ID afdc8d978bf581318d9906556693a2a66f67116b
lib/cyborghood/cyborg/botnet/interface.rb | ||
---|---|---|
module CyborgHood
|
||
module DSL
|
||
class ServerApiNode < BaseDSL
|
||
attr_reader :bot
|
||
attr_reader :bot, :node_name
|
||
|
||
# needed for testing node existence
|
||
reveal :nil?
|
||
... | ... | |
raise CyberError.new(:unrecoverable, 'api/cyborghood', "unknown node") if node.nil?
|
||
|
||
logger.debug "[Server API] Node '#{node_path}' found"
|
||
r = node.__send__(:request, session, args)
|
||
logger.debug "[Server API] reply for node '#{node_path}': " + r.inspect
|
||
r
|
||
node.__send__(:request, session, args)
|
||
end
|
||
|
||
protected
|
Also available in: Unified diff
[fix] mistakes in API Interface: forgot to export node_name, and forgot :inspect is not available for nodes