Module: Julewire::Core::Integration::Lifecycle
- Defined in:
- lib/julewire/core/integration/lifecycle.rb
Class Method Summary collapse
- .register_after_fork(integration, component:) ⇒ Object
- .register_before_fork(integration, component:) ⇒ Object
- .require_optional(path) ⇒ Object
Class Method Details
.register_after_fork(integration, component:) ⇒ Object
15 16 17 |
# File 'lib/julewire/core/integration/lifecycle.rb', line 15 def register_after_fork(integration, component:, &) ForkHooks.register(integration, component: component, &) end |
.register_before_fork(integration, component:) ⇒ Object
19 20 21 |
# File 'lib/julewire/core/integration/lifecycle.rb', line 19 def register_before_fork(integration, component:, &) BeforeForkHooks.register(integration, component: component, &) end |
.require_optional(path) ⇒ Object
9 10 11 12 13 |
# File 'lib/julewire/core/integration/lifecycle.rb', line 9 def require_optional(path) require path rescue LoadError nil end |