Class: InspecPlugins::Parallelism::StreamingReporter
- Inherits:
-
Object
- Object
- InspecPlugins::Parallelism::StreamingReporter
- Defined in:
- lib/plugins/inspec-parallel/lib/inspec-parallel/child_status_reporter.rb
Instance Method Summary collapse
- #close(notification) ⇒ Object
- #example_failed(notification) ⇒ Object
- #example_passed(notification) ⇒ Object
- #example_pending(notification) ⇒ Object
-
#initialize(output) ⇒ StreamingReporter
constructor
A new instance of StreamingReporter.
Constructor Details
#initialize(output) ⇒ StreamingReporter
Returns a new instance of StreamingReporter.
6 7 8 9 10 |
# File 'lib/plugins/inspec-parallel/lib/inspec-parallel/child_status_reporter.rb', line 6 def initialize(output) @status_mapping = {} @control_counter = 0 initialize_streaming_reporter end |
Instance Method Details
#close(notification) ⇒ Object
24 25 26 27 |
# File 'lib/plugins/inspec-parallel/lib/inspec-parallel/child_status_reporter.rb', line 24 def close(notification) # HACK: if we've reached the end of the execution, send a special marker, to ease EOF detection on Windows puts "EOF_MARKER" end |
#example_failed(notification) ⇒ Object
16 17 18 |
# File 'lib/plugins/inspec-parallel/lib/inspec-parallel/child_status_reporter.rb', line 16 def example_failed(notification) set_example(notification, "failed") end |
#example_passed(notification) ⇒ Object
12 13 14 |
# File 'lib/plugins/inspec-parallel/lib/inspec-parallel/child_status_reporter.rb', line 12 def example_passed(notification) set_example(notification, "passed") end |
#example_pending(notification) ⇒ Object
20 21 22 |
# File 'lib/plugins/inspec-parallel/lib/inspec-parallel/child_status_reporter.rb', line 20 def example_pending(notification) set_example(notification, "skipped") end |