Method: CSVStore#put
- Defined in:
- lib/csvget.rb
#put(host, tmpfile) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/csvget.rb', line 18 def put(host, tmpfile) @parselets.each do |parselet| begin type = (`file "#{tmpfile.path}"` =~ /xml/i) ? :xml : :html output = parselet.parse(:file => tmpfile.path, :input => type) walk(output) rescue ParsleyError => e STDERR.puts "warning: #{e.}" end end end |