Class: Renuo::Cli::Commands::HerokuUsers

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

Instance Method Summary collapse

Instance Method Details

#run(args) ⇒ Object



15
16
17
18
19
20
21
22
# 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