Class: InspecPlugins::StreamingReporterProgressBar::StreamingReporter
- Inherits:
-
Object
- Object
- InspecPlugins::StreamingReporterProgressBar::StreamingReporter
- Defined in:
- lib/plugins/inspec-streaming-reporter-progress-bar/lib/inspec-streaming-reporter-progress-bar/streaming_reporter.rb
Overview
This class will provide the actual Streaming Reporter implementation. Its superclass is provided by another call to Inspec.plugin, this time with two args. The first arg specifies we are requesting version 2 of the Plugins API. The second says we are making a Streaming Reporter plugin component, so please make available any DSL needed for that.
Instance Method Summary collapse
- #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
50 51 52 53 54 |
# File 'lib/plugins/inspec-streaming-reporter-progress-bar/lib/inspec-streaming-reporter-progress-bar/streaming_reporter.rb', line 50 def initialize(output) @bar = nil @status_mapping = {} initialize_streaming_reporter end |
Instance Method Details
#example_failed(notification) ⇒ Object
60 61 62 |
# File 'lib/plugins/inspec-streaming-reporter-progress-bar/lib/inspec-streaming-reporter-progress-bar/streaming_reporter.rb', line 60 def example_failed(notification) set_example(notification, "failed") end |
#example_passed(notification) ⇒ Object
56 57 58 |
# File 'lib/plugins/inspec-streaming-reporter-progress-bar/lib/inspec-streaming-reporter-progress-bar/streaming_reporter.rb', line 56 def example_passed(notification) set_example(notification, "passed") end |
#example_pending(notification) ⇒ Object
64 65 66 |
# File 'lib/plugins/inspec-streaming-reporter-progress-bar/lib/inspec-streaming-reporter-progress-bar/streaming_reporter.rb', line 64 def example_pending(notification) set_example(notification, "skipped") end |