Skip to content

Commit

Permalink
support $NO_RVM just because, remove debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Horner and Lake Denman committed May 3, 2012
1 parent 3212de8 commit cba644a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/relevance_rails/runner.rb
Expand Up @@ -9,7 +9,7 @@ def self.start(argv=ARGV)
puts "RelevanceRails #{RelevanceRails::VERSION}"
elsif argv[0] == 'new'
add_default_options! argv
if ENV['rvm_path'].nil?
if ENV['rvm_path'].nil? || ENV['NO_RVM']
exec 'rails', *argv
else
app_name = argv[1]
Expand Down Expand Up @@ -54,8 +54,6 @@ def self.setup_rvm(app_name)
# in 1.12.0, so you don't use this trick anymore.
$LOAD_PATH.unshift "#{ENV['rvm_path']}/lib"
end
p ENV['RUBYLIB']
p $LOAD_PATH
require 'rvm'
env = RVM::Environment.current
env.gemset_create(app_name)
Expand Down

0 comments on commit cba644a

Please sign in to comment.