Class: HerokuUsers

Inherits:
Object
  • Object
show all
Defined in:
lib/renuo/cli/app/heroku_users.rb

Instance Method Summary collapse

Instance Method Details

#run(args) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/renuo/cli/app/heroku_users.rb', line 6

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 = HerokuApps.new.run
  heroku_apps.each do |app|
    say "heroku access:#{action} #{email_address} --app #{app}"
  end
end