Module: BackgroundProcessCoreHelpers
- Included in:
- BackgroundProcessHelpers
- Defined in:
- lib/rspec-background-process/background_process_helpers.rb
Overview
Just methods config.include BackgroundProcessCoreHelpers
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.report_failed_instance ⇒ Object
24 25 26 27 28 29 |
# File 'lib/rspec-background-process/background_process_helpers.rb', line 24 def self.report_failed_instance return unless defined? @@process_pool @@process_pool.report_failed_instance @@process_pool.report_logs end |
.report_pool_stats ⇒ Object
31 32 33 34 35 |
# File 'lib/rspec-background-process/background_process_helpers.rb', line 31 def self.report_pool_stats return unless defined? @@process_pool @@process_pool.report_stats end |
Instance Method Details
#background_process(path, options = {}) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/rspec-background-process/background_process_helpers.rb', line 14 def background_process(path, = {}) RSpecBackgroundProcess::ProcessPool::ProcessDefinition.new( process_pool.pool, [:group] || 'default', path, [:load] ? RSpecBackgroundProcess::LoadedBackgroundProcess : RSpecBackgroundProcess::BackgroundProcess, process_pool. ) end |
#process_pool(options = {}) ⇒ Object
10 11 12 |
# File 'lib/rspec-background-process/background_process_helpers.rb', line 10 def process_pool( = {}) @@process_pool ||= RSpecBackgroundProcess::ProcessPool.new() end |