Class: Codeowners::Cli::OwnersListHandler
- Defined in:
- lib/codeowners/cli/owners_list_handler.rb
Overview
Command Line Interface dealing with OWNERS generation and validation
Constant Summary collapse
- FETCH_OWNER_MESSAGE =
'Fetching owners list from GitHub ...'
- ASK_GITHUB_ORGANIZATION =
'GitHub organization (e.g. github): '
- ASK_GITHUB_TOKEN =
'Enter GitHub token: '
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Codeowners::Cli::Base
Instance Method Details
#fetch(repo = '.') ⇒ Object
16 17 18 19 20 |
# File 'lib/codeowners/cli/owners_list_handler.rb', line 16 def fetch(repo = '.') @repo = repo owners = owners_from_github Checker::OwnersList.persist!(repo, owners) end |