Permalink
Browse files

Rake already chdir()s into the Rakefile directory, so use that

closes #860
  • Loading branch information...
1 parent e517d6f commit 2418bc9755ecca2ae91d846a9a444ec3d2a662a7 @indirect indirect committed Jan 18, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/bundler/gem_helper.rb
@@ -4,9 +4,9 @@
module Bundler
class GemHelper
- def self.install_tasks(opts = nil)
- dir = File.dirname(Rake.application.rakefile_location)
- self.new(dir, opts && opts[:name]).install
+ def self.install_tasks(opts = {})
+ dir = opts[:dir] || Dir.pwd
+ self.new(dir, opts[:name]).install
end
attr_reader :spec_path, :base, :gemspec

0 comments on commit 2418bc9

Please sign in to comment.