Class: Navo::CLI
- Inherits:
-
Thor
- Object
- Thor
- Navo::CLI
- Defined in:
- lib/navo/cli.rb
Overview
Command line application interface.
Instance Method Summary collapse
-
#initialize(*args) ⇒ CLI
constructor
A new instance of CLI.
- #login(pattern) ⇒ Object
Constructor Details
Instance Method Details
#login(pattern) ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/navo/cli.rb', line 47 def login(pattern) apply_flags_to_config! suites = suites_for(pattern) if suites.size == 0 logger.console "Pattern '#{pattern}' matched no test suites", severity: :error exit 1 elsif suites.size > 1 logger.console "Pattern '#{pattern}' matched more than one test suite", severity: :error exit 1 else suites.first.login end end |