def import_from
entities.each do |key|
a_map = AllCommand.known[key]
if a_map['import']
import_file = "#{option_directory}/#{a_map['export-file']}.csv"
args = build_args(key, import_file)
if File.exist? import_file
progress format('Import %-20s with arguments %s', key, args.join(' '))
import_class = HammerCLIImport::ImportCommand.const_get(a_map['import-class'])
unless option_dry_run?
import_class.new(args).run(args)
end
else
progress "...SKIPPING, no file #{import_file} available."
end
end
end
end