Class: Codeowners::Cli::Base
- Inherits:
-
Thor
- Object
- Thor
- Codeowners::Cli::Base
- Defined in:
- lib/codeowners/cli/base.rb
Overview
Base collects shared methods used by all CLI sub commands It loads and validate the default config file or output an explanation about how to configure it.
Instance Method Summary collapse
-
#initialize(args = [], options = {}, config = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(args = [], options = {}, config = {}) ⇒ Base
Returns a new instance of Base.
13 14 15 16 |
# File 'lib/codeowners/cli/base.rb', line 13 def initialize(args = [], = {}, config = {}) super @config ||= config[:config] || default_config end |