Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 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,8 @@
commands :rvmcmd => "/usr/local/rvm/bin/rvm"

def create
rvmcmd "install", resource[:name]
options = Array(resource[:build_opts])
rvmcmd "install", resource[:name], *options
set_default if resource.value(:default_use)
end

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

newparam(:build_opts) do
desc "Build flags for RVM (e.g.: ['--movable', '--with-libyaml-dir=...', ...])"
defaultto ""
end

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

end