Method: Jenkins::Plugin::Tools::Bundle#install
- Defined in:
- lib/jenkins/plugin/tools/bundle.rb
#install ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/jenkins/plugin/tools/bundle.rb', line 11 def install require 'java' require 'bundler' puts "bundling..." # We set these in ENV instead of passing the --without and --path # options because the CLI options are remembered in .bundle/config and # will interfere with regular usage of bundle exec / install. Bundler.with_clean_env { ENV['BUNDLE_APP_CONFIG'] = "#{@target}/vendor/bundle" ENV['BUNDLE_WITHOUT'] = "development" ENV['BUNDLE_PATH'] = "#{@target}/vendor/gems" ENV.delete 'RUBYOPT' system('bundle --standalone') } end |