lib/rconf/configurators/ruby_configurator.rb in rconf-0.6.31 vs lib/rconf/configurators/ruby_configurator.rb in rconf-0.6.32
- old
+ new
@@ -61,22 +61,22 @@
report_fatal("Failed to use #{version}:\n#{out}")
end
end
if gemset
report_check("Checking whether gemset #{gemset} exists")
- res = Command.execute('rvm', version, 'gemset', 'list')
+ res = Command.execute('rvm', version, 'exec', 'rvm', 'gemset', 'list')
if res.output =~ /^(\s+|=> )#{gemset}$/
report_success
else
report_failure
report_check("Creating gemset #{gemset} for #{version}")
- Command.execute('rvm', version, 'gemset', 'create', gemset,
+ Command.execute('rvm', version, 'exec', 'rvm', 'gemset', 'create', gemset,
:abort_on_failure => "Failed to create gemset '#{gemset}'")
Command.execute_in_ruby('gem', 'install', 'rconf')
report_success
end
report_check("Switching to gemset #{gemset}")
- Command.execute('rvm', version, 'gemset', 'use', gemset,
+ Command.execute_in_ruby('gemset', 'use', gemset,
:abort_on_failure => "Failed to switch to gemset '#{gemset}'")
report_success
end
report_check("Checking whether rubygems #{rubygems} is installed")
res = Command.execute_in_ruby('gem', '--version')