Class: Kuby::Docker::Layer
- Inherits:
-
Object
- Object
- Kuby::Docker::Layer
- Defined in:
- lib/kuby/docker/layer.rb
Direct Known Subclasses
AppPhase, AssetsPhase, BundlerPhase, CopyPhase, InlineLayer, PackagePhase, SetupPhase, WebserverPhase, YarnPhase
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
T::Sig::WithoutRuntime.sig { returns(Environment) }.
Instance Method Summary collapse
-
#apply_to(dockerfile) ⇒ Object
T::Sig::WithoutRuntime.sig { params(dockerfile: Dockerfile).void }.
-
#initialize(environment) ⇒ Layer
constructor
T::Sig::WithoutRuntime.sig { params(environment: Environment).void }.
Constructor Details
#initialize(environment) ⇒ Layer
T::Sig::WithoutRuntime.sig { params(environment: Environment).void }
15 16 17 |
# File 'lib/kuby/docker/layer.rb', line 15 def initialize(environment) @environment = environment end |
Instance Attribute Details
#environment ⇒ Object (readonly)
T::Sig::WithoutRuntime.sig { returns(Environment) }
12 13 14 |
# File 'lib/kuby/docker/layer.rb', line 12 def environment @environment end |
Instance Method Details
#apply_to(dockerfile) ⇒ Object
T::Sig::WithoutRuntime.sig { params(dockerfile: Dockerfile).void }
20 21 22 23 |
# File 'lib/kuby/docker/layer.rb', line 20 def apply_to(dockerfile) raise NotImplementedError, "#{__method__} must be defined in derived classes" end |