Class: Revamp::CLI
- Inherits:
-
Object
- Object
- Revamp::CLI
- Defined in:
- lib/revamp/cli.rb
Overview
A command line interface class
Defined Under Namespace
Classes: Execution
Instance Method Summary collapse
-
#run!(argv = ARGV) ⇒ Integer
Executes an Revamp from CLI.
Instance Method Details
#run!(argv = ARGV) ⇒ Integer
Executes an Revamp from CLI
10 11 12 13 14 15 16 |
# File 'lib/revamp/cli.rb', line 10 def run!(argv = ARGV) exec = parse_execution(argv) return -1 unless exec.success? exec = run_execution(exec.value) return 1 unless exec.success? 0 end |