Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

Commit

Permalink
bundler hijacks GEM_HOME, need to restore it to install
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Aug 24, 2010
1 parent 6b579b2 commit 0c7700b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/parka/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ def build(gemspec_filename=nil)
desc "install [GEMSPEC]", "Build and install the gem"

def install(gemspec_filename=nil)
original_home = ENV["GEM_HOME"]
gemfile = build(gemspec_filename)
installer = Gem::DependencyInstaller.new
installer.install gemfile
say "Successfully installed #{File.basename(gemfile)}"
ENV["GEM_HOME"] = original_home

system "gem install #{gemfile}"
end

desc "push [GEMSPEC]", "Build the gem and push it to GitHub and RubyGems.org"
Expand Down

0 comments on commit 0c7700b

Please sign in to comment.