Class: Ops
- Inherits:
-
Object
- Object
- Ops
- Defined in:
- lib/ops.rb
Overview
executes commands based on local ‘ops.yml`
Defined Under Namespace
Classes: UnknownActionError
Constant Summary collapse
- CONFIG_FILE =
"ops.yml"- INVALID_SYNTAX_EXIT_CODE =
64- UNKNOWN_ACTION_EXIT_CODE =
65
Instance Method Summary collapse
-
#initialize(argv) ⇒ Ops
constructor
A new instance of Ops.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'lib/ops.rb', line 29 def run exit(INVALID_SYNTAX_EXIT_CODE) unless syntax_valid? run_action rescue UnknownActionError => e Output.error("Error: #{e}") exit(UNKNOWN_ACTION_EXIT_CODE) end |