Class: Indocker::ContainerDirectives::Ports
- Inherits:
-
Base
- Object
- Directives::Base
- Base
- Indocker::ContainerDirectives::Ports
- Defined in:
- lib/indocker/directives/container_directives/ports.rb
Instance Attribute Summary collapse
-
#docker_port ⇒ Object
Returns the value of attribute docker_port.
-
#host_port ⇒ Object
Returns the value of attribute host_port.
Instance Method Summary collapse
-
#initialize(docker_port:, host_port:) ⇒ Ports
constructor
A new instance of Ports.
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(docker_port:, host_port:) ⇒ Ports
Returns a new instance of Ports.
4 5 6 7 |
# File 'lib/indocker/directives/container_directives/ports.rb', line 4 def initialize(docker_port:, host_port:) @docker_port = docker_port @host_port = host_port end |
Instance Attribute Details
#docker_port ⇒ Object
Returns the value of attribute docker_port.
2 3 4 |
# File 'lib/indocker/directives/container_directives/ports.rb', line 2 def docker_port @docker_port end |
#host_port ⇒ Object
Returns the value of attribute host_port.
2 3 4 |
# File 'lib/indocker/directives/container_directives/ports.rb', line 2 def host_port @host_port end |