Class: Oxidized::Script::CLI

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

Defined Under Namespace

Classes: CLIError, NothingToDo

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cmd_classObject

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

#runObject



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