5
5
# require helper available.
6
6
require "vagrant/shared_helpers"
7
7
8
- Vagrant . require "log4r"
8
+ require "log4r"
9
9
10
10
# Add patches to log4r to support trace level
11
- Vagrant . require "vagrant/patches/log4r"
12
- Vagrant . require "vagrant/patches/net-ssh"
13
- Vagrant . require "vagrant/patches/rubygems"
14
- Vagrant . require "vagrant/patches/timeout_error"
11
+ require "vagrant/patches/log4r"
12
+ require "vagrant/patches/net-ssh"
13
+ require "vagrant/patches/rubygems"
14
+ require "vagrant/patches/timeout_error"
15
15
16
16
# Set our log levels and include trace
17
- Vagrant . require 'log4r/configurator'
17
+ require 'log4r/configurator'
18
18
Log4r ::Configurator . custom_levels ( *( [ "TRACE" ] + Log4r ::Log4rConfig ::LogLevels ) )
19
19
20
20
# Update the default formatter within the log4r library to ensure
@@ -26,7 +26,7 @@ def format_object(obj)
26
26
end
27
27
end
28
28
29
- Vagrant . require "optparse"
29
+ require "optparse"
30
30
31
31
module Vagrant
32
32
# This is a customized OptionParser for Vagrant plugins. It
@@ -51,9 +51,9 @@ module VagrantPlugins
51
51
end
52
52
53
53
# Load in our helpers and utilities
54
- Vagrant . require "rubygems"
55
- Vagrant . require "vagrant/util"
56
- Vagrant . require "vagrant/plugin/manager"
54
+ require "rubygems"
55
+ require "vagrant/util"
56
+ require "vagrant/plugin/manager"
57
57
58
58
# Enable logging if it is requested. We do this before
59
59
# anything else so that we can setup the output before
@@ -110,19 +110,19 @@ def << msg
110
110
end
111
111
end
112
112
113
- Vagrant . require 'json'
114
- Vagrant . require 'pathname'
115
- Vagrant . require 'stringio'
113
+ require 'json'
114
+ require 'pathname'
115
+ require 'stringio'
116
116
117
- Vagrant . require 'childprocess'
118
- Vagrant . require 'i18n'
117
+ require 'childprocess'
118
+ require 'i18n'
119
119
120
120
# OpenSSL must be loaded here since when it is loaded via `autoload`
121
121
# there are issues with ciphers not being properly loaded.
122
- Vagrant . require 'openssl'
122
+ require 'openssl'
123
123
124
124
# Always make the version available
125
- Vagrant . require 'vagrant/version'
125
+ require 'vagrant/version'
126
126
global_logger = Log4r ::Logger . new ( "vagrant::global" )
127
127
Vagrant . global_logger = global_logger
128
128
global_logger . info ( "Vagrant version: #{ Vagrant ::VERSION } " )
@@ -143,7 +143,7 @@ def << msg
143
143
if vagrant_ssl_locations . any? { |f | File . exist? ( f ) }
144
144
global_logger . debug ( "vagrant ssl helper found for loading ssl providers" )
145
145
begin
146
- Vagrant . require "vagrant/vagrant_ssl"
146
+ require "vagrant/vagrant_ssl"
147
147
Vagrant . vagrant_ssl_load
148
148
global_logger . debug ( "ssl providers successfully loaded" )
149
149
rescue LoadError => err
@@ -157,8 +157,8 @@ def << msg
157
157
158
158
# We need these components always so instead of an autoload we
159
159
# just require them explicitly here.
160
- Vagrant . require "vagrant/plugin"
161
- Vagrant . require "vagrant/registry"
160
+ require "vagrant/plugin"
161
+ require "vagrant/registry"
162
162
163
163
module Vagrant
164
164
autoload :Action , 'vagrant/action'
@@ -235,7 +235,7 @@ def self.has_plugin?(name, version=nil)
235
235
end
236
236
237
237
# Now check the plugin gem names
238
- Vagrant . require "vagrant/plugin/manager"
238
+ require "vagrant/plugin/manager"
239
239
Plugin ::Manager . instance . plugin_installed? ( name , version )
240
240
end
241
241
@@ -273,7 +273,7 @@ def self.plugin(version, component=nil)
273
273
274
274
# @deprecated
275
275
def self . require_plugin ( name )
276
- puts "Vagrant. require_plugin is deprecated and has no effect any longer."
276
+ puts "require_plugin is deprecated and has no effect any longer."
277
277
puts "Use `vagrant plugin` commands to manage plugins. This warning will"
278
278
puts "be removed in the next version of Vagrant."
279
279
end
@@ -297,9 +297,9 @@ def self.version?(*requirements)
297
297
#
298
298
# Examples are shown below:
299
299
#
300
- # Vagrant. require_version(">= 1.3.5")
301
- # Vagrant. require_version(">= 1.3.5", "< 1.4.0")
302
- # Vagrant. require_version("~> 1.3.5")
300
+ # require_version(">= 1.3.5")
301
+ # require_version(">= 1.3.5", "< 1.4.0")
302
+ # require_version("~> 1.3.5")
303
303
#
304
304
def self . require_version ( *requirements )
305
305
logger = Log4r ::Logger . new ( "vagrant::root" )
0 commit comments