blt04 / puppet-rvm

A puppet module for installing and using RVM (Ruby Version Manager)
Other
242 stars 280 forks source link

gemset provider not reading gemset list properly on centos5 #18

Closed josephcrim closed 13 years ago

josephcrim commented 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

blt04 commented 13 years ago

What version of Ruby are you using? I thought we back-ported the lines method to 1.8, but maybe it is broken.

josephcrim commented 13 years ago

ruby 1.8.5 (2006-08-25) [x86_64-linux]