Class: Codeowners::CLI::Commands::List
- 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:) ⇒ Object
43 44 45 46 47 48 |
# File 'lib/codeowners/cli.rb', line 43 def call(file:, base_directory:, codeowners:, **) result = Codeowners::ListOwners.new(base_directory, codeowners).call(file) exit(1) unless result.successful? out.puts result.to_s end |