rconf 0.6.31 → 0.6.32
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rconf +1 -1
- data/lib/rconf/configurators/ruby_configurator.rb +3 -3
- data/lib/rconf/version.rb +1 -1
- metadata +1 -1
data/bin/rconf
CHANGED
@@ -120,7 +120,7 @@ where [options] are:
|
|
120
120
|
rubies.each do |ruby|
|
121
121
|
ruby =~ /(\s+| =>)([^ ]*)\s.*/
|
122
122
|
ruby = Regexp.last_match(2)
|
123
|
-
gemsets = Command.execute('rvm', ruby, 'gemset', 'list').output.split("\n")
|
123
|
+
gemsets = Command.execute('rvm', ruby, 'exec', 'rvm', 'gemset', 'list').output.split("\n")
|
124
124
|
i = gemsets.index { |gs| gs =~ /^gemsets for #{ruby} / }
|
125
125
|
gemsets = gemsets[i + 1..-1]
|
126
126
|
gemsets.each do |gs|
|
@@ -63,19 +63,19 @@ module RightConf
|
|
63
63
|
end
|
64
64
|
if gemset
|
65
65
|
report_check("Checking whether gemset #{gemset} exists")
|
66
|
-
res = Command.execute('rvm', version, 'gemset', 'list')
|
66
|
+
res = Command.execute('rvm', version, 'exec', 'rvm', 'gemset', 'list')
|
67
67
|
if res.output =~ /^(\s+|=> )#{gemset}$/
|
68
68
|
report_success
|
69
69
|
else
|
70
70
|
report_failure
|
71
71
|
report_check("Creating gemset #{gemset} for #{version}")
|
72
|
-
Command.execute('rvm', version, 'gemset', 'create', gemset,
|
72
|
+
Command.execute('rvm', version, 'exec', 'rvm', 'gemset', 'create', gemset,
|
73
73
|
:abort_on_failure => "Failed to create gemset '#{gemset}'")
|
74
74
|
Command.execute_in_ruby('gem', 'install', 'rconf')
|
75
75
|
report_success
|
76
76
|
end
|
77
77
|
report_check("Switching to gemset #{gemset}")
|
78
|
-
Command.
|
78
|
+
Command.execute_in_ruby('gemset', 'use', gemset,
|
79
79
|
:abort_on_failure => "Failed to switch to gemset '#{gemset}'")
|
80
80
|
report_success
|
81
81
|
end
|
data/lib/rconf/version.rb
CHANGED