Class: Codeowners::Cli::Config
- Inherits:
-
Base
- Object
- Thor
- Base
- Codeowners::Cli::Config
show all
- 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
#initialize
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? || config.default_organization.empty?
end
|
#organization(name) ⇒ Object
24
25
26
27
|
# File 'lib/codeowners/cli/config.rb', line 24
def organization(name)
config.default_organization = name
puts "Default organization configured to #{name}"
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
|