Class: Indocker::ContainerDirectives::Expose
- Inherits:
-
Base
- Object
- Directives::Base
- Base
- Indocker::ContainerDirectives::Expose
- Defined in:
- lib/indocker/directives/container_directives/expose.rb
Instance Attribute Summary collapse
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(port) ⇒ Expose
constructor
A new instance of Expose.
Methods inherited from Base
#after_start?, #after_stop?, #before_start?, #before_stop?
Methods inherited from Directives::Base
#build_directive?, #container_directive?, #partial?, #prepare_directive?
Constructor Details
#initialize(port) ⇒ Expose
Returns a new instance of Expose.
4 5 6 |
# File 'lib/indocker/directives/container_directives/expose.rb', line 4 def initialize(port) @port = port end |
Instance Attribute Details
#port ⇒ Object
Returns the value of attribute port.
2 3 4 |
# File 'lib/indocker/directives/container_directives/expose.rb', line 2 def port @port end |