Method: Oxidized::TFTP#cmd

Defined in:
lib/oxidized/input/tftp.rb

#cmd(file) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/oxidized/input/tftp.rb', line 23

def cmd(file)
  Oxidized.logger.debug "TFTP: #{file} @ #{@node.name}"
  config = StringIO.new
  @tftp.getbinary file, config
  config.rewind
  config.read
end