Class: Kuby::Docker::WebserverDevPhase
- Extended by:
- T::Sig
- Defined in:
- lib/kuby/docker/dev_spec.rb
Constant Summary collapse
- DEFAULT_PORT =
T.let(3000, Integer)
Instance Attribute Summary collapse
Attributes inherited from Layer
Instance Method Summary collapse
- #apply_to(dockerfile) ⇒ Object
-
#initialize(environment) ⇒ WebserverDevPhase
constructor
A new instance of WebserverDevPhase.
Constructor Details
#initialize(environment) ⇒ WebserverDevPhase
Returns a new instance of WebserverDevPhase.
14 15 16 17 18 |
# File 'lib/kuby/docker/dev_spec.rb', line 14 def initialize(environment) super @port = T.let(@port, T.nilable(Integer)) end |
Instance Attribute Details
#port ⇒ Object
26 27 28 |
# File 'lib/kuby/docker/dev_spec.rb', line 26 def port @port || DEFAULT_PORT end |
Instance Method Details
#apply_to(dockerfile) ⇒ Object
21 22 23 |
# File 'lib/kuby/docker/dev_spec.rb', line 21 def apply_to(dockerfile) dockerfile.expose(port) end |