module RidgepoleRake::Bundler::Command

Public Instance Methods

execute() click to toggle source

@note override

Calls superclass method
# File lib/ridgepole_rake/ext/bundler.rb, line 21
def execute
  if use_with_clean_env?
    ::Bundler.with_clean_env do
      config.bundler[:with_clean_env].call
      super
    end
  elsif use_clean_system?
    ::Bundler.clean_system(*stash)
  else
    super
  end
end

Private Instance Methods

add_ridgepole() click to toggle source

@note override

Calls superclass method
# File lib/ridgepole_rake/ext/bundler.rb, line 37
def add_ridgepole
  super
  stash.unshift(*%w(bundle exec)) if config.bundler[:use]
end
use_clean_system?() click to toggle source
# File lib/ridgepole_rake/ext/bundler.rb, line 46
def use_clean_system?
  config.bundler[:use] && config.bundler[:clean_system]
end
use_with_clean_env?() click to toggle source
# File lib/ridgepole_rake/ext/bundler.rb, line 42
def use_with_clean_env?
  config.bundler[:use] && config.bundler[:with_clean_env].respond_to?(:call)
end