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.



6
7
8
# File 'lib/oxidized/script/cli.rb', line 6

def cmd_class
  @cmd_class
end

Instance Method Details

#runObject



10
11
12
13
14
15
16
17
# File 'lib/oxidized/script/cli.rb', line 10

def run
  connect
  if @opts[:commands]
    run_file @opts[:commands]
  elsif @cmd
    @oxs.cmd @cmd
  end
end