Permalink
Browse files

added rvm support + check for Virtualbox in veewee command

  • Loading branch information...
1 parent b7084c5 commit 3dcdd212e74b255f2575a8a04666aa2060d929b8 @jedi4ever committed Feb 6, 2011
Showing with 11 additions and 11 deletions.
  1. +2 −0 .rvmrc
  2. +9 −1 bin/veewee
  3. +0 −7 veewee.ENV
  4. +0 −3 veewee.rvm
View
2 .rvmrc
@@ -0,0 +1,2 @@
+rvm use ruby-1.9.2
+rvm gemset use veewee
View
@@ -3,8 +3,10 @@
require 'rubygems'
require 'thor'
require 'bundler'
+require 'virtualbox'
require 'veewee'
+
#Setup some base variables to use
veewee_dir= File.expand_path(File.join(File.dirname(__FILE__),".."))
definition_dir= File.expand_path(File.join(".", "definitions"))
@@ -65,4 +67,10 @@ class VeeweeCLI < Thor
end
-VeeweeCLI.start
+version=VirtualBox.version
+if (version.match(/^4.x/))
+ VeeweeCLI.start
+else
+ puts "veewee only supports VirtualBox 4.x"
+end
+
View
@@ -1,7 +0,0 @@
-export GEM_HOME=`pwd`/gems
-export GEM_PATH=`pwd`/gems
-
-export RUBY_HOME="/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/"
-export PATH=$RUBY_HOME/bin:$PATH
-export PATH=$GEM_HOME/bin:$PATH
-export VBOX_USER_HOME=`pwd`/tmp
View
@@ -1,3 +0,0 @@
-rvm gemset create veewee
-rvm gemset use veewee
-rvm gemset list

0 comments on commit 3dcdd21

Please sign in to comment.