lib/vulcan/cli.rb in vulcan-0.1.2 vs lib/vulcan/cli.rb in vulcan-0.1.3

- old
+ new

@@ -113,10 +113,11 @@ CONTENTS end 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" FileUtils.cp_r "#{server_path}/.", "." File.open(".gitignore", "w") do |file|