From cef8d7f65cb9f7931625a900b00a53ffb2848f12 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Tue, 20 Nov 2012 19:08:45 -0500 Subject: fix $install_method to work properly unfortunately, if one attempts to set the $install_method to an empty string, puppet complains that you are interning an empty string. If you set it to undef, then the parameterized default will get chosen. To fix this, I replaced the $bundler::params::install_method default class parameter value with 'rvm' (the value that $bundler::params::install_method defaulted to) and then setup a test to determine if the $install_method was set to undef, if so, then we set a second variable ($provider_method) to undef and use that. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index a792b86..f0b8c53 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,12 @@ https://github.com/evanstachowiak/puppet-bundler bundler) By default this will install bundler with RVM, if you wish to use another method, you can pass any puppet package provider to the class as - 'install_method', or just use '' if you wish the puppet parser to + 'install_method', or just use undef if you wish the puppet parser to automatically chose the best method for your platform. Examples: class { 'bundler::install': install_method => 'fink' }; class { 'bundler::install': install_method => 'gem' }; - class { 'bundler::install': install_method => '' } + class { 'bundler::install': install_method => undef } 3. Set whatever config variables are necessary: bundler::config { 'linecache19': -- cgit v1.2.3