Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

detect invalid api keys

  • Loading branch information...
commit 1657ce7290b1cf487c6364a4a3099cba063c8d55 1 parent 70ec4c7
@ddollar ddollar authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/vulcan/cli.rb
View
3  lib/vulcan/cli.rb
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.