lib/rconf/configurators/ruby_configurator.rb in rconf-0.9.6 vs lib/rconf/configurators/ruby_configurator.rb in rconf-0.9.7

- old
+ new

@@ -50,11 +50,11 @@ def run_linux check_rvm(RVM_VERSION) return true if aborting Command.set_ruby(version, gemset) report_check("Checking whether #{version} is the active ruby") - out = Command.execute('rvm', 'list').output - if out =~ /^=> #{version.gsub('.', '\\.')}/ + out = Command.execute('rvm', 'current').output + if out =~ /^#{version.gsub('.', '\\.')}/ report_success check_rvmrc else report_failure report_check("Switching to #{version}")