Class: TestSteps::Handlers::ExecuteSystemCommand

Inherits:
Base
  • Object
show all
Defined in:
lib/functions/handlers/execute_system_command.rb

Overview

Execute System Command function.

Instance Method Summary collapse

Methods inherited from Base

#initialize, #login_check, #login_process, #mem_word_check, #open_url_process, perform, #portal_mem_word, register

Constructor Details

This class inherits a constructor from TestSteps::Handlers::Base

Instance Method Details

#performObject



11
12
13
14
15
16
17
18
19
20
# File 'lib/functions/handlers/execute_system_command.rb', line 11

def perform
  b_result = system @value
  if b_result == true
    MyLog.log.info("Cmd has been executed sucessfully #{@value}")
    return true
  else
    MyLog.log.warn("Theres a problem executing command #{@value}")
    return false
  end
end