Class: Scoutui::Commands::DumpVars

Inherits:
Command
  • Object
show all
Defined in:
lib/scoutui/commands/dumpvars.rb

Instance Attribute Summary

Attributes inherited from Command

#bm, #cmd, #description, #drv, #enableAssert, #executed, #executed_result, #locator, #rc, #stanza

Instance Method Summary collapse

Methods inherited from Command

#assert?, #disableAssert, #disableAsserts, #enableAsserts, #executedResult, #getLocator, #initialize, #passed?, #result, #run, #setBenchmark, #setLocator, #setResult, #wasExecuted?

Constructor Details

This class inherits a constructor from Scoutui::Commands::Command

Instance Method Details

#execute(drv, e = nil) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/scoutui/commands/dumpvars.rb', line 6

def execute(drv, e=nil)
  rc=false
  @drv=drv if !drv.nil?

  begin
    Scoutui::Logger::LogMgr.instance.debug " *** DUMP VARS ****"
    Scoutui::Base::UserVars.instance.dump
    rc=true
  rescue => ex
    ;
  end

  setResult(rc)
end