bin/rconf in rconf-0.9.4 vs bin/rconf in rconf-0.9.6
- old
+ new
@@ -133,9 +133,10 @@
# === Return
# true:: Always return true
def run_in_all_gemsets(&callback)
rubies = Command.execute('rvm', 'list').output
rubies = rubies.split("\n")[3..-1]
+ report_fatal 'Failed to list install rubies (is rvm in your path?)' unless rubies
rubies.each do |ruby|
ruby =~ /(\s+| =>)([^ ]*)\s.*/
ruby = Regexp.last_match(2)
gemsets = Command.execute('rvm', ruby, 'exec', 'rvm', 'gemset', 'list').output.split("\n")
i = gemsets.index { |gs| gs =~ /^gemsets for #{ruby} / }