Vagrant is now a good ruby gem citizen and no longer modifies the include path.

This commit is contained in:
Mitchell Hashimoto 2010-03-13 03:21:04 -08:00
parent 5598a260c2
commit 6c05901fe7
11 changed files with 10 additions and 21 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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