Sha256: 7e22b947824ec5fcbda677a7dda85d41f3e577166d12cb1c69d3247e3c40e358
Contents?: true
Size: 530 Bytes
Versions: 1
Compression:
Stored size: 530 Bytes
Contents
class KuberKit::Core::ServiceFactory AttributeNotSetError = Class.new(KuberKit::Error) def create(definition) service_attrs = definition.to_service_attrs if service_attrs.template_name.nil? raise AttributeNotSetError, "Please set template for service using #template method" end KuberKit::Core::Service.new( name: service_attrs.name, template_name: service_attrs.template_name, tags: service_attrs.tags, images: service_attrs.images ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kuber_kit-0.1.4 | lib/kuber_kit/core/service_factory.rb |