Skip to content
This repository
Browse code

better api key getting

  • Loading branch information...
commit 378efddc66db6ecbf6cb883350de94f2efceb59b 1 parent 0932103
David Dollar ddollar authored

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. +6 1 lib/vulcan/cli.rb
7 lib/vulcan/cli.rb
@@ -99,9 +99,14 @@ def update
99 99
100 100 File.open(File.expand_path("~/.heroku/plugins/heroku-credentials/init.rb"), "w") do |file|
101 101 file.puts <<-CONTENTS
  102 + class Heroku::Auth
  103 + def self.api_key
  104 + Heroku::Client.auth(user, password, host)["api_key"]
  105 + end
  106 + end
102 107 class Heroku::Command::Credentials < Heroku::Command::Base
103 108 def index
104   - puts Heroku::Auth.password
  109 + puts Heroku::Auth.api_key
105 110 end
106 111 end
107 112 CONTENTS

0 comments on commit 378efdd

Please sign in to comment.
Something went wrong with that request. Please try again.