class ParallelCucumber::Hooks
Public Class Methods
fire_after_batch_hooks(*args)
click to toggle source
# File lib/parallel_cucumber/hooks.rb, line 59 def fire_after_batch_hooks(*args) @after_batch_hooks.each do |hook| hook.call(*args) end end
fire_after_workers(*args)
click to toggle source
# File lib/parallel_cucumber/hooks.rb, line 71 def fire_after_workers(*args) @after_workers.each do |hook| hook.call(*args) end end
fire_before_batch_hooks(*args)
click to toggle source
# File lib/parallel_cucumber/hooks.rb, line 53 def fire_before_batch_hooks(*args) @before_batch_hooks.each do |hook| hook.call(*args) end end
fire_before_workers(*args)
click to toggle source
# File lib/parallel_cucumber/hooks.rb, line 65 def fire_before_workers(*args) @before_workers.each do |hook| hook.call(*args) end end
fire_on_batch_error(*args)
click to toggle source
# File lib/parallel_cucumber/hooks.rb, line 77 def fire_on_batch_error(*args) @on_batch_error.each do |hook| hook.call(*args) end end
fire_on_dry_run_error(error)
click to toggle source
# File lib/parallel_cucumber/hooks.rb, line 83 def fire_on_dry_run_error(error) @on_dry_run_error.each do |hook| hook.call(error) end end
fire_worker_health_check(*args)
click to toggle source
# File lib/parallel_cucumber/hooks.rb, line 47 def fire_worker_health_check(*args) @worker_health_check.each do |hook| hook.call(*args) end end
register_after_batch(proc)
click to toggle source
# File lib/parallel_cucumber/hooks.rb, line 22 def register_after_batch(proc) raise(ArgumentError, 'Please provide a valid callback') unless proc.respond_to?(:call) @after_batch_hooks << proc end
register_after_workers(proc)
click to toggle source
# File lib/parallel_cucumber/hooks.rb, line 32 def register_after_workers(proc) raise(ArgumentError, 'Please provide a valid callback') unless proc.respond_to?(:call) @after_workers << proc end
register_before_batch(proc)
click to toggle source
# File lib/parallel_cucumber/hooks.rb, line 17 def register_before_batch(proc) raise(ArgumentError, 'Please provide a valid callback') unless proc.respond_to?(:call) @before_batch_hooks << proc end
register_before_workers(proc)
click to toggle source
# File lib/parallel_cucumber/hooks.rb, line 27 def register_before_workers(proc) raise(ArgumentError, 'Please provide a valid callback') unless proc.respond_to?(:call) @before_workers << proc end
register_on_batch_error(proc)
click to toggle source
# File lib/parallel_cucumber/hooks.rb, line 37 def register_on_batch_error(proc) raise(ArgumentError, 'Please provide a valid callback') unless proc.respond_to?(:call) @on_batch_error << proc end
register_on_dry_run_error(proc)
click to toggle source
# File lib/parallel_cucumber/hooks.rb, line 42 def register_on_dry_run_error(proc) raise(ArgumentError, 'Please provide a valid callback') unless proc.respond_to?(:call) @on_dry_run_error << proc end
register_worker_health_check(proc)
click to toggle source
# File lib/parallel_cucumber/hooks.rb, line 12 def register_worker_health_check(proc) raise(ArgumentError, 'Please provide a valid callback') unless proc.respond_to?(:call) @worker_health_check << proc end