Sha256: 018a9d80b3f5c488bc88fa4ed98b6e05cbad4ceb5850be1c5e68c1cf06f7e51b

Contents?: true

Size: 425 Bytes

Versions: 15

Compression:

Stored size: 425 Bytes

Contents

require_relative './heroku_apps.rb'

class HerokuUsers
  def initialize; end

  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
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
renuo-cli-1.7.3 lib/renuo/cli/app/heroku_users.rb
renuo-cli-1.7.2 lib/renuo/cli/app/heroku_users.rb
renuo-cli-1.7.1 lib/renuo/cli/app/heroku_users.rb
renuo-cli-1.7.0 lib/renuo/cli/app/heroku_users.rb
renuo-cli-1.6.0 lib/renuo/cli/app/heroku_users.rb
renuo-cli-1.5.0 lib/renuo/cli/app/heroku_users.rb
renuo-cli-1.4.4 lib/renuo/cli/app/heroku_users.rb
renuo-cli-1.4.3 lib/renuo/cli/app/heroku_users.rb
renuo-cli-1.4.2 lib/renuo/cli/app/heroku_users.rb
renuo-cli-1.4.1 lib/renuo/cli/app/heroku_users.rb
renuo-cli-1.4.0 lib/renuo/cli/app/heroku_users.rb
renuo-cli-1.3.1 lib/renuo/cli/app/heroku_users.rb
renuo-cli-1.3.0 lib/renuo/cli/app/heroku_users.rb
renuo-cli-1.2.1 lib/renuo/cli/app/heroku_users.rb
renuo-cli-1.2.0 lib/renuo/cli/app/heroku_users.rb