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.



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

def gem_loaded
  @gem_loaded
end

Instance Method Details

#default_gemfileObject

Raises:



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

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

#default_lockfileObject



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

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

#in_bundle?Boolean

Returns:

  • (Boolean)


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

def in_bundle?
  find_gemfile
end