lib/rconf/configurators/bundler_configurator.rb in rconf-0.6.3 vs lib/rconf/configurators/bundler_configurator.rb in rconf-0.6.4

- old
+ new

@@ -19,12 +19,14 @@ register :bundler description 'Installs bundler and runs "bundle install"' - settings :version => 'Version of bundler gem, e.g. "1.0.10"', - :gem_path => 'Path to bundler gem, e.g. "vendor/system_gems/cache"' + settings :version => 'Version of bundler gem, e.g. "1.0.10"', + :exclusions => '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 # Install bundler if needed and run bundle install # @@ -35,10 +37,14 @@ res = Command.execute('bundle', '--version') success = (res.output =~ /#{version}/) report_result(success) install_bundler unless success report_check('Installing gems') - res = Command.execute('bundle', 'install', :abort_on_failure => 'Failed to install gems') + options = [ 'install' ] + options << "--without=#{exclusions}" unless exclusions.nil? + options << "--path #{bundle_path}" unless bundle_path.nil? + options << { :abort_on_failure => 'Failed to install gems' } + res = Command.execute('bundle', *options) report_success true end alias :run_darwin :run_linux