Class: Indocker::ContainerDirectives::Expose

Inherits:
Base show all
Defined in:
lib/indocker/directives/container_directives/expose.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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