Project

General

Profile

Revision c2496839

Added by Thomas McKay over 8 years ago

Checks /api/status for SAM (Headpin)

View differences:

lib/hammer_cli_csv/locations.rb
39 39
        CSV.open(option_csv_file || '/dev/stdout', 'wb', {:force_quotes => true}) do |csv|
40 40
          csv << [NAME, COUNT, PARENT]
41 41
          @api.resource(:locations).call(:index, {:per_page => 999999})['results'].each do |location|
42
            csv << [location['name'], 1]
42
            csv << [location['name'], 1, '']
43 43
          end
44 44
        end
45 45
      end

Also available in: Unified diff