Move new binary into place

This commit is contained in:
Mitchell Hashimoto 2010-08-24 09:21:24 -07:00
parent 0ddda8f591
commit 2691b0493c
2 changed files with 8 additions and 18 deletions

View File

@ -1,5 +1,11 @@
#!/usr/bin/env ruby
require 'vagrant'
require 'vagrant/cli'
# Call the command
Vagrant::Command.execute(*ARGV)
begin
Vagrant::CLI.start(ARGV, :env => Vagrant::Environment.load!)
rescue Vagrant::VagrantError => e
Vagrant.ui.error e.message
Vagrant.ui.error e.backtrace.join("\n")
exit e.status_code
end

View File

@ -1,16 +0,0 @@
#!/usr/bin/env ruby
# NOTE: This file is TEMPORARY. Eventually the plan is for this binary
# to become the new `vagrant` binary. The only reason for the separation
# now is so that both can be tested in parallel.
require 'vagrant'
require 'vagrant/cli'
begin
Vagrant::CLI.start(ARGV, :env => Vagrant::Environment.load!)
rescue Vagrant::VagrantError => e
Vagrant.ui.error e.message
Vagrant.ui.error e.backtrace.join("\n")
exit e.status_code
end