Created
October 6, 2014 08:22
-
-
Save regonn/89cc08033e56800da3cd to your computer and use it in GitHub Desktop.
Herokuアプリの権限のあるユーザを一覧で表示
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 実行前に下の設定が必要です | |
| # $ rbenv exec gem install heroku-api | |
| # $ export HEROKU_API_KEY=your_heroku_api_key | |
| require 'heroku-api' | |
| heroku = Heroku::API.new | |
| apps = heroku.get_apps.body | |
| apps.each do |app| | |
| puts app['name'] | |
| collaborators = heroku.get_collaborators(app['name']).body | |
| collaborators.each do |collaborator| | |
| puts collaborator['email'] | |
| end | |
| puts "\n\n" | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment