Sha256: 5314925e180589424599526efe56f5db1829dc747f5efff0907d3bee088329ae
Contents?: true
Size: 743 Bytes
Versions: 16
Compression:
Stored size: 743 Bytes
Contents
# typed: true module Kuby class Environment attr_reader :name, :definition attr_accessor :configured alias_method :configured?, :configured def initialize(name, definition, &block) @name = name @definition = definition end def docker(&block) @docker ||= if development? Docker::DevSpec.new(self) else Docker::Spec.new(self) end @docker.instance_eval(&block) if block @docker end def kubernetes(&block) @kubernetes ||= Kubernetes::Spec.new(self) @kubernetes.instance_eval(&block) if block @kubernetes end def app_name definition.app_name end def development? name == 'development' end end end
Version data entries
16 entries across 16 versions & 1 rubygems