Sha256: bf40601d537e8027a5dc22f86c2c154a47c1cd8bf05cacb8a82a7606221ecdae
Contents?: true
Size: 1.02 KB
Versions: 25
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true require_relative "../../base" module Neetob class CLI module Heroku module Access class Add < Base attr_accessor :apps, :new_users, :sandbox def initialize(apps, new_users = [], sandbox = false) super() @apps = apps @new_users = new_users @sandbox = sandbox end def run matching_apps = find_all_matching_apps(apps, :heroku, sandbox) matching_apps.each do |app| `heroku access -a #{app}` unless $?.success? ui.error("There is a problem in accessing the app with name \"#{app}\" in your account.") ui.error("Please check the specified app name and ensure you're authorized to view that app.") next end new_users.each do |user| ui.info(`heroku access:add #{user} -a #{app}`) end end end end end end end end
Version data entries
25 entries across 25 versions & 2 rubygems