Sha256: ac8ad9375ab298ec3e2d1af6e49ea968c6cfe87dc110b5f3e3da8b2393d4e897
Contents?: true
Size: 540 Bytes
Versions: 2
Compression:
Stored size: 540 Bytes
Contents
module ServiceSkeleton module UltravisorChildren def register_ultravisor_children(ultravisor, config:, metrics_registry:) begin ultravisor.add_child( id: self.service_name.to_sym, klass: self, method: :run, args: [config: config, metrics: metrics_registry] ) rescue Ultravisor::InvalidKAMError raise ServiceSkeleton::Error::InvalidServiceClassError, "Class #{self.to_s} does not implement the `run' instance method" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
service_skeleton-0.0.0.49.g47046b9 | lib/service_skeleton/ultravisor_children.rb |
service_skeleton-0.0.0.48.g4a40599 | lib/service_skeleton/ultravisor_children.rb |