Method: Oxidized::TFTP#cmd

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

#cmd(file) ⇒ Object



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

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