Module: Bundler::SharedHelpers
- Extended by:
- SharedHelpers
- Included in:
- Runtime, SharedHelpers
- Defined in:
- lib/bundler/shared_helpers.rb
Instance Attribute Summary collapse
-
#gem_loaded ⇒ Object
Returns the value of attribute gem_loaded.
Instance Method Summary collapse
Instance Attribute Details
#gem_loaded ⇒ Object
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_gemfile ⇒ Object
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_lockfile ⇒ Object
25 26 27 |
# File 'lib/bundler/shared_helpers.rb', line 25 def default_lockfile Pathname.new("#{default_gemfile}.lock") end |
#in_bundle? ⇒ Boolean
29 30 31 |
# File 'lib/bundler/shared_helpers.rb', line 29 def in_bundle? find_gemfile end |