Class: ExecuteManager

Inherits:
Object
  • Object
show all
Defined in:
lib/teuton/case/execute/execute_manager.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent) ⇒ ExecuteManager

Returns a new instance of ExecuteManager.



6
7
8
9
10
11
# File 'lib/teuton/case/execute/execute_manager.rb', line 6

def initialize(parent)
  @parent = parent
  # READ: @config, cmd = action[:command]
  # WRITE: @action, @result, @session
  # my_execute, encode_and_split methods?
end

Instance Method Details

#call(host) ⇒ Object



13
14
15
16
17
# File 'lib/teuton/case/execute/execute_manager.rb', line 13

def call(host)
  start_time = Time.now
  run_on(host)
  action[:duration] = (Time.now - start_time).round(3)
end