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
|
# Get library
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||||
$:.unshift(libdir) unless $:.include?(libdir)
|
require File.expand_path('vagrant', libdir)
|
||||||
require 'vagrant'
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
GitStyleBinary.command do
|
||||||
short_desc "manage boxes"
|
short_desc "manage boxes"
|
||||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
||||||
|
|
||||||
# Get library
|
# Get library
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||||
$:.unshift(libdir) unless $:.include?(libdir)
|
require File.expand_path('vagrant', libdir)
|
||||||
require 'vagrant'
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
GitStyleBinary.command do
|
||||||
short_desc "destroys the vagrant environment"
|
short_desc "destroys the vagrant environment"
|
||||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
||||||
|
|
||||||
# Get library
|
# Get library
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||||
$:.unshift(libdir) unless $:.include?(libdir)
|
require File.expand_path('vagrant', libdir)
|
||||||
require 'vagrant'
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
GitStyleBinary.command do
|
||||||
short_desc "forcibly halts the vagrant environment"
|
short_desc "forcibly halts the vagrant environment"
|
||||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
||||||
|
|
||||||
# Get library
|
# Get library
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||||
$:.unshift(libdir) unless $:.include?(libdir)
|
require File.expand_path('vagrant', libdir)
|
||||||
require 'vagrant'
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
GitStyleBinary.command do
|
||||||
short_desc "initializes directory for vagrant use"
|
short_desc "initializes directory for vagrant use"
|
||||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
||||||
|
|
||||||
# Get library
|
# Get library
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||||
$:.unshift(libdir) unless $:.include?(libdir)
|
require File.expand_path('vagrant', libdir)
|
||||||
require 'vagrant'
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
GitStyleBinary.command do
|
||||||
short_desc "package the current vagrant environment"
|
short_desc "package the current vagrant environment"
|
||||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
||||||
|
|
||||||
# Get library
|
# Get library
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||||
$:.unshift(libdir) unless $:.include?(libdir)
|
require File.expand_path('vagrant', libdir)
|
||||||
require 'vagrant'
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
GitStyleBinary.command do
|
||||||
short_desc "reload the vagrant environment"
|
short_desc "reload the vagrant environment"
|
||||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
||||||
|
|
||||||
# Get library
|
# Get library
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||||
$:.unshift(libdir) unless $:.include?(libdir)
|
require File.expand_path('vagrant', libdir)
|
||||||
require 'vagrant'
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
GitStyleBinary.command do
|
||||||
short_desc "resumes the vagrant environment"
|
short_desc "resumes the vagrant environment"
|
||||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
||||||
|
|
||||||
# Get library
|
# Get library
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||||
$:.unshift(libdir) unless $:.include?(libdir)
|
require File.expand_path('vagrant', libdir)
|
||||||
require 'vagrant'
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
GitStyleBinary.command do
|
||||||
short_desc "opens an SSH connection into the VM"
|
short_desc "opens an SSH connection into the VM"
|
||||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
||||||
|
|
||||||
# Get library
|
# Get library
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||||
$:.unshift(libdir) unless $:.include?(libdir)
|
require File.expand_path('vagrant', libdir)
|
||||||
require 'vagrant'
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
GitStyleBinary.command do
|
||||||
short_desc "suspends the vagrant environment"
|
short_desc "suspends the vagrant environment"
|
||||||
|
|
|
@ -10,8 +10,7 @@ require 'git-style-binary/command'
|
||||||
|
|
||||||
# Get library
|
# Get library
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
||||||
$:.unshift(libdir) unless $:.include?(libdir)
|
require File.expand_path('vagrant', libdir)
|
||||||
require 'vagrant'
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
GitStyleBinary.command do
|
||||||
short_desc "create the vagrant environment"
|
short_desc "create the vagrant environment"
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
libdir = File.dirname(__FILE__)
|
libdir = File.dirname(__FILE__)
|
||||||
$:.unshift(libdir)
|
|
||||||
PROJECT_ROOT = File.join(libdir, '..') unless defined?(PROJECT_ROOT)
|
PROJECT_ROOT = File.join(libdir, '..') unless defined?(PROJECT_ROOT)
|
||||||
|
|
||||||
# The libs which must be loaded prior to the rest
|
# The libs which must be loaded prior to the rest
|
||||||
|
|
Loading…
Reference in New Issue