# File lib/hammer_cli_csv/hosts.rb, line 70 def import @existing = {} @api.resource(:hosts).call(:index, {:per_page => 999999})['results'].each do |host| @existing[host['name']] = host['id'] if host end thread_import do |line| create_hosts_from_csv(line) end end