lib/vagrant-mutate/mutate.rb in vagrant-mutate-0.1.4 vs lib/vagrant-mutate/mutate.rb in vagrant-mutate-0.1.5

- old
+ new

@@ -18,18 +18,14 @@ end box_arg = argv[0] output_provider_arg = argv[1] + input_loader = BoxLoader.new(@env) - output_loader = BoxLoader.new(@env) + input_box = input_loader.load(box_arg) - if box_arg =~ /\.box$/ - input_box = input_loader.load_from_file(box_arg) - else - input_box = input_loader.load_by_name(box_arg) - end - + output_loader = BoxLoader.new(@env) output_box = output_loader.prepare_for_output( input_box.name, output_provider_arg) converter = Converter::Converter.create(@env, input_box, output_box) converter.convert