Class: CemAcpt::TestRunner::LogFormatter::GossActionResponse

Inherits:
Base
  • Object
show all
Defined in:
lib/cem_acpt/test_runner/log_formatter/goss_action_response.rb

Overview

Formats the results of a Goss action

Constant Summary

Constants inherited from Base

Base::INDENT

Instance Attribute Summary

Attributes inherited from Base

#subject

Instance Method Summary collapse

Methods inherited from Base

#inspect, #to_s

Constructor Details

#initialize(config, instance_names_ips, subject: nil) ⇒ GossActionResponse

Returns a new instance of GossActionResponse.



10
11
12
13
14
# File 'lib/cem_acpt/test_runner/log_formatter/goss_action_response.rb', line 10

def initialize(config, instance_names_ips, subject: nil)
  super(subject)
  @config = config
  @instance_names_ips = instance_names_ips
end

Instance Method Details

#host_name(response = nil) ⇒ Object



26
27
28
29
# File 'lib/cem_acpt/test_runner/log_formatter/goss_action_response.rb', line 26

def host_name(response = nil)
  super(response)
  name_from_ip(log_subject.host)
end

#results(response = nil) ⇒ Object



21
22
23
24
# File 'lib/cem_acpt/test_runner/log_formatter/goss_action_response.rb', line 21

def results(response = nil)
  super(response)
  new_results_message(log_subject.results)
end

#summary(response = nil) ⇒ Object



16
17
18
19
# File 'lib/cem_acpt/test_runner/log_formatter/goss_action_response.rb', line 16

def summary(response = nil)
  super(response)
  new_summary_message(log_subject)
end

#test_name(response = nil) ⇒ Object



31
32
33
34
# File 'lib/cem_acpt/test_runner/log_formatter/goss_action_response.rb', line 31

def test_name(response = nil)
  super(response)
  test_from_ip(log_subject.host)
end