Class: BundleDev::Definition

Inherits:
Object
  • Object
show all
Defined in:
lib/bundle_dev/definition.rb

Class Method Summary collapse

Class Method Details

.buildObject



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/bundle_dev/definition.rb', line 4

def self.build
  gemfile = Bundler::SharedHelpers.default_gemfile
  gemfile = Pathname.new(gemfile).expand_path
  if not gemfile.file?
    raise GemfileNotFound, "#{gemfile} not found"
  end

  lockfile = Bundler::SharedHelpers.default_lockfile
  unlock = {}

  Dsl.evaluate gemfile, lockfile, unlock
end