Class: Oxidized::Script::CLI
- Inherits:
-
Object
- Object
- Oxidized::Script::CLI
- Defined in:
- lib/oxidized/script/cli.rb
Defined Under Namespace
Classes: CLIError, NothingToDo
Instance Attribute Summary collapse
-
#cmd_class ⇒ Object
Returns the value of attribute cmd_class.
Instance Method Summary collapse
Instance Attribute Details
#cmd_class ⇒ Object
Returns the value of attribute cmd_class.
7 8 9 |
# File 'lib/oxidized/script/cli.rb', line 7 def cmd_class @cmd_class end |
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/oxidized/script/cli.rb', line 11 def run connect if @opts[:commands] run_file @opts[:commands] elsif @cmd @oxs.cmd @cmd end end |