lib/rconf/configurators/bundler_configurator.rb in rconf-0.7.0 vs lib/rconf/configurators/bundler_configurator.rb in rconf-0.7.1

- old
+ new

@@ -20,11 +20,11 @@ register :bundler description 'Installs bundler and runs "bundle install"' settings :version => 'Version of bundler gem, e.g. "1.0.10"', - :exclusions => 'Gem groups to be excluded when installing bundle', + :exclusions => 'Comma separated list of gem groups to be excluded when installing bundle', :bundle_path => 'Path where bundle should be installed', :gem_path => 'Path to bundler gem, e.g. "vendor/system_gems/cache"' validate_has_settings :version @@ -38,11 +38,11 @@ success = (res.output =~ /#{version}/) report_result(success) install_bundler unless success report_check('Installing gems') options = [ "_#{version}_", 'install' ] - options << "--without=#{exclusions}" unless exclusions.nil? - options << "--path #{bundle_path}" unless bundle_path.nil? + options << "--without=#{exclusions.delete(' ')}" unless exclusions.nil? + options += [ '--path', bundle_path ] unless bundle_path.nil? options << { :abort_on_failure => 'Failed to install gems' } res = Command.execute_in_ruby('bundle', *options) report_success true end