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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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