You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
newparam(:rubygems) do
desc "The version of rubygems to install"
defaultto false
end
provider/provider/rvm_system_ruby.rb
def create
rvmcmd "install", resource[:name]
if resource[:rubygems]
rvmcmd resource[:name], 'rubygems', resource[:rubygems]
end
set_default if resource.value(:default_use)
end
but this isn't really adequate as it only applies when the system ruby is installed, not if you want to specify it later.
Something like:
I hacked something together:
type/rvm_system_ruby.rb
newparam(:rubygems) do
desc "The version of rubygems to install"
defaultto false
end
provider/provider/rvm_system_ruby.rb
def create
rvmcmd "install", resource[:name]
if resource[:rubygems]
rvmcmd resource[:name], 'rubygems', resource[:rubygems]
end
set_default if resource.value(:default_use)
end
but this isn't really adequate as it only applies when the system ruby is installed, not if you want to specify it later.
Good notes here: https://rvm.io/rubies/rubygems/
The text was updated successfully, but these errors were encountered: