Sha256: 829f6ecaf9d799e6947b4bddbd1a2f8ff0a0031e557de0156f1b7a1cd17ecf09

Contents?: true

Size: 895 Bytes

Versions: 14

Compression:

Stored size: 895 Bytes

Contents

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

env = Vagrant::Environment.new

begin
  # Begin logging early here
  env.logger.info("vagrant") { "`vagrant` invoked: #{ARGV.inspect}" }

  # Disable color if the proper argument was passed
  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

14 entries across 14 versions & 3 rubygems

Version Path
vagrantup-0.8.7 bin/vagrant
vagrantup-0.8.6 bin/vagrant
vagrantup-0.8.5 bin/vagrant
vagrantup-0.8.4 bin/vagrant
vagrantup-0.8.3 bin/vagrant
vagrantup-0.8.2 bin/vagrant
vagrantup-0.8.1 bin/vagrant
vagrantup-0.8.0 bin/vagrant
vagrant-0.8.7 bin/vagrant
rvagrant-0.8.7.dev bin/vagrant
vagrant-0.8.6 bin/vagrant
vagrant-0.8.5 bin/vagrant
vagrant-0.8.2 bin/vagrant
vagrant-0.8.1 bin/vagrant