Class: Kuby::Docker::Layer
- Inherits:
-
Object
- Object
- Kuby::Docker::Layer
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/kuby/docker/layer.rb
Direct Known Subclasses
AssetsPhase, BundlerPhase, CopyPhase, InlineLayer, PackagePhase, SetupPhase, WebserverPhase, YarnPhase
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
Instance Method Summary collapse
- #apply_to(dockerfile) ⇒ Object
-
#initialize(environment) ⇒ Layer
constructor
A new instance of Layer.
Constructor Details
#initialize(environment) ⇒ Layer
Returns a new instance of Layer.
15 16 17 |
# File 'lib/kuby/docker/layer.rb', line 15 def initialize(environment) @environment = environment end |
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
12 13 14 |
# File 'lib/kuby/docker/layer.rb', line 12 def environment @environment end |
Instance Method Details
#apply_to(dockerfile) ⇒ Object
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 |