Class: Codeowners::Cli::Config
- Defined in:
- lib/codeowners/cli/config.rb
Overview
Provide options for configuring the default owner used for filtering changes.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Codeowners::Cli::Base
Instance Method Details
#list ⇒ Object
| 12 13 14 15 | # File 'lib/codeowners/cli/config.rb', line 12 def list puts(config.to_h.map { |name, value| "#{name}: #{value.inspect}" }) help_stderr if config.default_owner.empty? end | 
#owner(name) ⇒ Object
| 18 19 20 21 | # File 'lib/codeowners/cli/config.rb', line 18 def owner(name) config.default_owner = name puts "Default owner configured to #{name}" end |