Class: Codeowners::CLI::Commands::Import::Org

Inherits:
Command
  • Object
show all
Defined in:
lib/codeowners/cli.rb

Instance Method Summary collapse

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from Codeowners::CLI::Commands::Command

Instance Method Details

#call(org:, token:, storage:, debug:) ⇒ Object



179
180
181
182
183
184
# File 'lib/codeowners/cli.rb', line 179

def call(org:, token:, storage:, debug:, **)
  client = Codeowners::Import::Client.new(token, out)
  storage = Codeowners::Storage.new(storage)

  Codeowners::Import::Organization.new(client, storage).call(org, debug)
end