Closed josephcrim closed 13 years ago
The gemset provider shows no gemset installed on each puppet run and tries to create them. To fix this I had to update the plugin with the following:
provider/rvm_gemset/gemset.rb
command = gemsetcommand + ['list'] output = execute(command) output.each do |line| if line =~ /^\s+\S+/ list << line.strip end end
from
command = gemsetcommand + ['list'] output = execute(command) output.lines do |line| if line =~ /^\s+\S+/ list << line.strip end end
What version of Ruby are you using? I thought we back-ported the lines method to 1.8, but maybe it is broken.
ruby 1.8.5 (2006-08-25) [x86_64-linux]
The gemset provider shows no gemset installed on each puppet run and tries to create them. To fix this I had to update the plugin with the following:
provider/rvm_gemset/gemset.rb
command = gemsetcommand + ['list'] output = execute(command) output.each do |line| if line =~ /^\s+\S+/ list << line.strip end end
from
command = gemsetcommand + ['list'] output = execute(command) output.lines do |line| if line =~ /^\s+\S+/ list << line.strip end end