Class: Codeowners::CLI::Commands::Guess
- Defined in:
- lib/codeowners/cli.rb
Instance Method Summary collapse
Methods inherited from Command
Constructor Details
This class inherits a constructor from Codeowners::CLI::Commands::Command
Instance Method Details
#call(file:, base_directory:, codeowners:, storage:, format:, debug:) ⇒ Object
136 137 138 139 140 141 142 143 144 145 |
# File 'lib/codeowners/cli.rb', line 136 def call(file:, base_directory:, codeowners:, storage:, format:, debug:, **) owners = Codeowners::ListOwners.new(base_directory, codeowners) contributors = Codeowners::ListContributors.new(base_directory) storage = Codeowners::Storage.new(storage) result = Codeowners::Guess.new(owners, contributors, storage, base_directory, out).call(file, debug) # exit(1) unless result.successful? out.puts output(result, format) end |