Permalink
Browse files

Clean up bundler.rb a bit

  • Loading branch information...
1 parent 601eae8 commit 625818a70d341d37260b700502ccec065fdee60a @indirect indirect committed Mar 31, 2010
Showing with 7 additions and 11 deletions.
  1. +7 −11 lib/bundler.rb
View
@@ -67,33 +67,29 @@ def bundle_path
end
def setup(*groups)
- gemfile = default_gemfile
- load(gemfile).setup(*groups)
+ load.setup(*groups)
end
def require(*groups)
- gemfile = default_gemfile
- load(gemfile).require(*groups)
+ load.require(*groups)
end
- def load(gemfile = default_gemfile)
- root = Pathname.new(gemfile).dirname
- Runtime.new root, definition(gemfile)
+ def load
+ Runtime.new root, definition
end
- def definition(gemfile = default_gemfile)
+ def definition
configure
- root = Pathname.new(gemfile).dirname
lockfile = root.join("Gemfile.lock")
if lockfile.exist?
Definition.from_lock(lockfile)
else
- Definition.from_gemfile(gemfile)
+ Definition.from_gemfile(default_gemfile)
end
end
def home
- Pathname.new(bundle_path).join("bundler")
+ bundle_path.join("bundler")
end
def install_path

0 comments on commit 625818a

Please sign in to comment.