Vagrant is now a good ruby gem citizen and no longer modifies the include path.
This commit is contained in:
parent
5598a260c2
commit
6c05901fe7
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
|||
|
||||
# Get library
|
||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||
$:.unshift(libdir) unless $:.include?(libdir)
|
||||
require 'vagrant'
|
||||
require File.expand_path('vagrant', libdir)
|
||||
|
||||
GitStyleBinary.command do
|
||||
short_desc "manage boxes"
|
||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
|||
|
||||
# Get library
|
||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||
$:.unshift(libdir) unless $:.include?(libdir)
|
||||
require 'vagrant'
|
||||
require File.expand_path('vagrant', libdir)
|
||||
|
||||
GitStyleBinary.command do
|
||||
short_desc "destroys the vagrant environment"
|
||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
|||
|
||||
# Get library
|
||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||
$:.unshift(libdir) unless $:.include?(libdir)
|
||||
require 'vagrant'
|
||||
require File.expand_path('vagrant', libdir)
|
||||
|
||||
GitStyleBinary.command do
|
||||
short_desc "forcibly halts the vagrant environment"
|
||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
|||
|
||||
# Get library
|
||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||
$:.unshift(libdir) unless $:.include?(libdir)
|
||||
require 'vagrant'
|
||||
require File.expand_path('vagrant', libdir)
|
||||
|
||||
GitStyleBinary.command do
|
||||
short_desc "initializes directory for vagrant use"
|
||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
|||
|
||||
# Get library
|
||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||
$:.unshift(libdir) unless $:.include?(libdir)
|
||||
require 'vagrant'
|
||||
require File.expand_path('vagrant', libdir)
|
||||
|
||||
GitStyleBinary.command do
|
||||
short_desc "package the current vagrant environment"
|
||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
|||
|
||||
# Get library
|
||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||
$:.unshift(libdir) unless $:.include?(libdir)
|
||||
require 'vagrant'
|
||||
require File.expand_path('vagrant', libdir)
|
||||
|
||||
GitStyleBinary.command do
|
||||
short_desc "reload the vagrant environment"
|
||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
|||
|
||||
# Get library
|
||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||
$:.unshift(libdir) unless $:.include?(libdir)
|
||||
require 'vagrant'
|
||||
require File.expand_path('vagrant', libdir)
|
||||
|
||||
GitStyleBinary.command do
|
||||
short_desc "resumes the vagrant environment"
|
||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
|||
|
||||
# Get library
|
||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||
$:.unshift(libdir) unless $:.include?(libdir)
|
||||
require 'vagrant'
|
||||
require File.expand_path('vagrant', libdir)
|
||||
|
||||
GitStyleBinary.command do
|
||||
short_desc "opens an SSH connection into the VM"
|
||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
|||
|
||||
# Get library
|
||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||
$:.unshift(libdir) unless $:.include?(libdir)
|
||||
require 'vagrant'
|
||||
require File.expand_path('vagrant', libdir)
|
||||
|
||||
GitStyleBinary.command do
|
||||
short_desc "suspends the vagrant environment"
|
||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
|||
|
||||
# Get library
|
||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||
$:.unshift(libdir) unless $:.include?(libdir)
|
||||
require 'vagrant'
|
||||
require File.expand_path('vagrant', libdir)
|
||||
|
||||
GitStyleBinary.command do
|
||||
short_desc "create the vagrant environment"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
libdir = File.dirname(__FILE__)
|
||||
$:.unshift(libdir)
|
||||
PROJECT_ROOT = File.join(libdir, '..') unless defined?(PROJECT_ROOT)
|
||||
|
||||
# The libs which must be loaded prior to the rest
|
||||
|
|
Loading…
Reference in New Issue