Skip to content

Commit

Permalink
detect invalid api keys
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Sep 24, 2011
1 parent 70ec4c7 commit 1657ce7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vulcan/cli.rb
Expand Up @@ -115,7 +115,8 @@ def index

Dir.mktmpdir do |dir|
Dir.chdir(dir) do
api_key = %x{ env BUNDLE_GEMFILE= heroku credentials }
api_key = %x{ env BUNDLE_GEMFILE= heroku credentials 2>&1 }.chomp
error "invalid api key detected, try running `heroku credentials`" if api_key =~ / /

system "git init"
system "git remote add heroku git@heroku.com:#{config[:app]}.git"
Expand Down

0 comments on commit 1657ce7

Please sign in to comment.