# File lib/hammer_cli_csv/architectures.rb, line 36 def export CSV.open(option_csv_file || '/dev/stdout', 'wb', {:force_quotes => true}) do |csv| csv << [NAME, COUNT, ORGANIZATIONS, OPERATINGSYSTEMS] @api.resource(:architectures).call(:index, {:per_page => 999999})['results'].each do |architecture| name = architecture['name'] count = 1 # TODO: http://projects.theforeman.org/issues/4198 #operatingsystems = architecture['operatingsystem_ids'].collect do |operatingsystem_id| # foreman_operatingsystem(:id => operatingsystem_id) #end.join(',') operatingsystems = '' csv << [name, count, operatingsystems] end end end