Sha256: 5c1ec7b9b8c08f257bba6989971622e14bbe8a846d6247d406906aeebb6cc559

Contents?: true

Size: 743 Bytes

Versions: 6

Compression:

Stored size: 743 Bytes

Contents

#!/usr/bin/env ruby
require 'vagrant'
require 'vagrant/cli'

env = Vagrant::Environment.new

begin
  shell = ARGV.include?("--no-color") ? Thor::Shell::Basic.new : Thor::Base.shell.new

  # Set the UI early in case any errors are raised, and load
  # the config immediately, so we gather any new commands from
  # plugins
  env.ui = Vagrant::UI::Shell.new(env, shell)
  env.load!

  # Kick start the CLI
  Vagrant::CLI.start(ARGV, :env => env)
rescue Vagrant::Errors::VagrantError => e
  opts = { :prefix => false }
  env.ui.error e.message, opts if e.message
  env.ui.error e.backtrace.join("\n"), opts if ENV["VAGRANT_DEBUG"]
  exit e.status_code if e.respond_to?(:status_code)
  exit 999 # An error occurred with no status code defined
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
vagrantup-0.7.8 bin/vagrant
vagrantup-0.7.7 bin/vagrant
vagrantup-0.7.6 bin/vagrant
vagrant-0.7.8 bin/vagrant
vagrant-0.7.7 bin/vagrant
vagrant-0.7.6 bin/vagrant