Class: CemAcpt::TestRunner::LogFormatter::GossActionResponse
- 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
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #host_name(response = nil) ⇒ Object
-
#initialize(config, instance_names_ips, subject: nil) ⇒ GossActionResponse
constructor
A new instance of GossActionResponse.
- #results(response = nil) ⇒ Object
- #summary(response = nil) ⇒ Object
- #test_name(response = nil) ⇒ Object
Methods inherited from Base
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) (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) (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 |