Project

General

Profile

« Previous | Next » 

Revision fdba013a

Added by Marc Dequènes over 13 years ago

  • ID fdba013a432d7f6f3ed4c2ce2c36918bf2363232

[debug] Interface: clarify messages for node lookup

View differences:

lib/cyborghood/cyborg/botnet/interface.rb
@ldir.nil? ? parent_lpath : File.join(parent_lpath, @ldir)
end
def load(node_element = '')
def load(node_element = nil)
logger.debug "[Server API] Loading node element '#{node_element || '/'}'"
cleanup
@node_name = node_element
@node_name = node_element || ''
@blocks.each do |bl|
begin
if bl.is_a? String
......
end
node_element = node_path.shift
logger.debug "[Server API] Looking for node element '#{node_element}'"
if node_element.nil?
return self
else
logger.debug "[Server API] Looking for node element '#{node_element}'"
next_node = find_child_node(session, env, node_element)
if next_node
next_node.__send__(:load, node_element)

Also available in: Unified diff