# File lib/hammer_cli_csv/import.rb, line 68 def hammer_resource(resource) return if !self.send("option_#{resource}") && !option_dir options_file = self.send("option_#{resource}") || "#{option_dir}/#{resource.sub('_', '-')}.csv" if !File.exists? options_file return if option_dir raise "File for #{resource} '#{options_file}' does not exist" end args = ??( csv #{resource.sub('_', '-')} --csv-file #{options_file} ) args << '-v' if option_verbose? args += ??( --threads #{option_threads} ) hammer.run(args) end