Module: Bundler::SharedHelpers

Extended by:
SharedHelpers
Included in:
Runtime, SharedHelpers
Defined in:
lib/bundler/shared_helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#gem_loadedObject

Returns the value of attribute gem_loaded.



18
19
20
# File 'lib/bundler/shared_helpers.rb', line 18

def gem_loaded
  @gem_loaded
end

Instance Method Details

#default_gemfileObject

Raises:



20
21
22
23
24
# File 'lib/bundler/shared_helpers.rb', line 20

def default_gemfile
  gemfile = find_gemfile
  raise GemfileNotFound, "Could not locate Gemfile" unless gemfile
  Pathname.new(gemfile)
end

#default_lockfileObject



26
27
28
# File 'lib/bundler/shared_helpers.rb', line 26

def default_lockfile
  Pathname.new("#{default_gemfile}.lock")
end

#in_bundle?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/bundler/shared_helpers.rb', line 30

def in_bundle?
  find_gemfile
end