class Renuo::Cli::Commands::HerokuUsers
Public Instance Methods
Source
# File lib/renuo/cli/commands/heroku_users.rb, line 15 def run(args) action, email_address = args abort(">> action is either add or remove") unless %w[add remove].include? action abort(">> specify an email address") unless email_address heroku_apps.each do |app| say "heroku access:#{action} #{email_address} --app #{app}" end end
Private Instance Methods
Source
# File lib/renuo/cli/commands/heroku_users.rb, line 26 def heroku_apps JSON.parse(`heroku apps --all --json`).pluck("name") end