Sha256: 83c9aad72c3b58f181735db0086a87a753e70be63d4b8a3ee36bd09b07392024
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 Bytes
Contents
# frozen_string_literal: true 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
service_skeleton-1.0.1 | lib/service_skeleton/ultravisor_children.rb |