Class: Revamp::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/revamp/cli.rb

Overview

A command line interface class

Defined Under Namespace

Classes: Execution

Instance Method Summary collapse

Instance Method Details

#run!(argv = ARGV) ⇒ Integer

Executes an Revamp from CLI

Parameters:

  • argv (Array) (defaults to: ARGV)

    an argv from CLI

Returns:

  • (Integer)

    a status code for program



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