Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: specify ruby gems version for rvm_system_ruby #58

Open
rsyring opened this issue Nov 24, 2012 · 1 comment
Open

feature: specify ruby gems version for rvm_system_ruby #58

rsyring opened this issue Nov 24, 2012 · 1 comment

Comments

@rsyring
Copy link

rsyring commented Nov 24, 2012

Something like:

rvm_system_ruby {
    'ruby-1.9.3-p327':
        ensure => 'present',
        default_use => true;
    $ruby_187:
        #rails 2.3.5 has issues with newer rubygems.  See notes at:
        # http://www.redmine.org/projects/redmine/wiki/RedmineInstall/123
        rubygems => '1.4.2',
        ensure => 'present',
        default_use => false;
}

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/

@tomdotorg
Copy link

Would love to see this.

togga pushed a commit to togga/puppet-rvm that referenced this issue Oct 20, 2014
Quote bare word upper case words in case statements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants