Skip to content

Commit

Permalink
Add support for patches of ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Holstvoogd committed Jan 4, 2013
1 parent a23b288 commit 63cbd9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/puppet/provider/rvm_system_ruby/rvm_system_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
commands :rvmcmd => "/usr/local/rvm/bin/rvm"

def create
rvmcmd "install", resource[:name]
if resource[:patch]
rvmcmd "install", resource[:name], "--patch", resource[:patch]
else
rvmcmd "install", resource[:name]
end
set_default if resource.value(:default_use)
end

Expand Down
4 changes: 4 additions & 0 deletions lib/puppet/type/rvm_system_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
isnamevar
end

newparam(:patch) do
desc "Install with specified patch"
end

newproperty(:default_use) do
desc "Should this Ruby be the system default for new terminals?"
defaultto false
Expand Down

0 comments on commit 63cbd9c

Please sign in to comment.