Class: Gerrit::CLI
- Inherits:
-
Object
- Object
- Gerrit::CLI
- Defined in:
- lib/gerrit/cli.rb
Overview
Command line application interface.
Defined Under Namespace
Modules: ExitCodes
Instance Method Summary collapse
-
#initialize(input:, output:) ⇒ CLI
constructor
Create a CLI that outputs to the given output destination.
-
#run(arguments) ⇒ Integer
Parses the given command-line arguments and executes appropriate logic based on those arguments.
Constructor Details
Instance Method Details
#run(arguments) ⇒ Integer
Parses the given command-line arguments and executes appropriate logic based on those arguments.
30 31 32 33 34 35 36 37 |
# File 'lib/gerrit/cli.rb', line 30 def run(arguments) config = Configuration.load_applicable run_command(config, arguments) ExitCodes::OK rescue => ex ErrorHandler.new(@ui).handle(ex) end |