Skip to content

Instantly share code, notes, and snippets.

@regonn
Created October 6, 2014 08:22
Show Gist options
  • Select an option

  • Save regonn/89cc08033e56800da3cd to your computer and use it in GitHub Desktop.

Select an option

Save regonn/89cc08033e56800da3cd to your computer and use it in GitHub Desktop.
Herokuアプリの権限のあるユーザを一覧で表示
# 実行前に下の設定が必要です
# $ 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