lib/rconf/configurators/bundler_configurator.rb in rconf-0.9.18 vs lib/rconf/configurators/bundler_configurator.rb in rconf-0.9.19

- old
+ new

@@ -23,11 +23,11 @@ settings :version => 'Version of bundler gem, e.g. "1.0.21"', :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 # Check whether bundler is already installed # # === Return @@ -53,11 +53,11 @@ # Install bundler if needed and run bundle install # # === Return # true:: Always return true def run_linux - install_bundler + install_bundler report_check('Installing gems') options = [ "_#{version}_", 'install' ] options << "--without=#{exclusions.delete(' ')}" unless exclusions.nil? options += [ '--path', bundle_path ] unless bundle_path.nil? options << { :abort_on_failure => 'Failed to install gems' } @@ -91,10 +91,10 @@ report_check('Uninstalling existing versions of bundler') Command.execute_in_ruby('gem', 'uninstall', 'bundler', '-a', '-x') report_success end report_check("Installing bundler #{version}") - if gem_path + if gem_path bundler_file = [ File.join(gem_path, "bundler-#{version}.gem") ] report_fatal("Missing bundler gem at #{bundler_file}") unless File.exist?(bundler_file) else bundler_file = [ 'bundler', '-v', version ] end