lib/vagrant.rb in vagrant-unbundled-2.0.3.0 vs lib/vagrant.rb in vagrant-unbundled-2.0.4.0
- old
+ new
@@ -63,13 +63,20 @@
# OpenSSL must be loaded here since when it is loaded via `autoload`
# there are issues with ciphers not being properly loaded.
require 'openssl'
+# If we are on Windows, load in File helpers
+if Vagrant::Util::Platform.windows?
+ require "ffi-win32-extensions"
+ require "win32/file/security"
+end
+
# Always make the version available
require 'vagrant/version'
global_logger = Log4r::Logger.new("vagrant::global")
+Vagrant.global_logger = global_logger
global_logger.info("Vagrant version: #{Vagrant::VERSION}")
global_logger.info("Ruby version: #{RUBY_VERSION}")
global_logger.info("RubyGems version: #{Gem::VERSION}")
ENV.each do |k, v|
next if k.start_with?("VAGRANT_OLD")
@@ -81,9 +88,10 @@
require "vagrant/plugin"
require "vagrant/registry"
module Vagrant
autoload :Action, 'vagrant/action'
+ autoload :Alias, 'vagrant/alias'
autoload :BatchAction, 'vagrant/batch_action'
autoload :Box, 'vagrant/box'
autoload :BoxCollection, 'vagrant/box_collection'
autoload :CLI, 'vagrant/cli'
autoload :Command, 'vagrant/command'