summaryrefslogtreecommitdiff
path: root/manifests/install.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/install.pp')
-rw-r--r--manifests/install.pp18
1 files changed, 15 insertions, 3 deletions
diff --git a/manifests/install.pp b/manifests/install.pp
index 4111d52..898cfea 100644
--- a/manifests/install.pp
+++ b/manifests/install.pp
@@ -4,8 +4,8 @@
#
# == Parameters
#
-# [*use_rvm*]
-# Sets whether rvm is used. Defaults to true.
+# [*install_method*]
+# How to install bundler, 'rvm' is the default
# [*ruby_version*]
# Ruby version that bundler will use.
#
@@ -21,13 +21,25 @@ class bundler::install (
$ruby_version = undef,
$ensure = 'present',
$install_method = 'rvm',
+ $use_rvm = '',
) inherits bundler::params {
+ # deprecation warning
+ if $use_rvm != '' {
+ warning('$use_rvm is deprecated, please use $install_method instead')
+ }
+
if $install_method == undef {
$provider_method = undef
}
else {
- $provider_method = $bundler::params::install_method
+ # backwards compatibility
+ if $use_rvm == false {
+ $provider_method = gem
+ }
+ else {
+ $provider_method = $bundler::params::install_method
+ }
}
if $provider_method == 'rvm' {