Class: InspecPlugins::Parallelism::SuperReporter::Text
- Inherits:
-
Base
- Object
- Base
- InspecPlugins::Parallelism::SuperReporter::Text
show all
- Defined in:
- lib/plugins/inspec-parallel/lib/inspec-parallel/super_reporter/text.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#child_exited(pid) ⇒ Object
12
13
14
|
# File 'lib/plugins/inspec-parallel/lib/inspec-parallel/super_reporter/text.rb', line 12
def child_exited(pid)
puts "[#{Time.now.iso8601}] Exited child PID #{pid} status #{$?}"
end
|
#child_forked(pid, _inv) ⇒ Object
8
9
10
|
# File 'lib/plugins/inspec-parallel/lib/inspec-parallel/super_reporter/text.rb', line 8
def child_forked(pid, _inv)
puts "[#{Time.now.iso8601}] Forked child PID #{pid}"
end
|
#child_spawned(pid, _inv) ⇒ Object
4
5
6
|
# File 'lib/plugins/inspec-parallel/lib/inspec-parallel/super_reporter/text.rb', line 4
def child_spawned(pid, _inv)
puts "[#{Time.now.iso8601}] Spawned child PID #{pid}"
end
|
#child_status_update_line(pid, update_line) ⇒ Object
16
17
18
19
20
|
# File 'lib/plugins/inspec-parallel/lib/inspec-parallel/super_reporter/text.rb', line 16
def child_status_update_line(pid, update_line)
control_serial, _status, control_count, _title = update_line.split("/")
percent = 100.0 * control_serial.to_i / control_count.to_i.to_f
puts "[#{Time.now.iso8601}] #{pid} " + format("%.1f%%", percent)
end
|