class Bundler::Definition

def self.build(gemfile, lockfile, unlock)

Returns:
  • (Bundler::Definition) -

Parameters:
  • unlock (Hash, Boolean, nil) -- Gems that have been requested
  • lockfile (Pathname, nil) -- Path to Gemfile.lock
  • gemfile (Pathname) -- Path to Gemfile
def self.build(gemfile, lockfile, unlock)
  unlock ||= {}
  gemfile = Pathname.new(gemfile).expand_path
  raise GemfileNotFound, "#{gemfile} not found" unless gemfile.file?
  Dsl.evaluate(gemfile, lockfile, unlock)
end