Class: Deck::Container::Expose
- Inherits:
-
Object
- Object
- Deck::Container::Expose
show all
- Includes:
- Submodule
- Defined in:
- lib/deck/container/expose.rb
Instance Method Summary
collapse
Methods included from Submodule
#attributes, #get, included, #map, #set, #value
Instance Method Details
#build_command(deps) ⇒ Object
14
15
16
|
# File 'lib/deck/container/expose.rb', line 14
def build_command(deps)
"EXPOSE #{export.join(' ')}"
end
|
#define(*ports) ⇒ Object
6
7
8
|
# File 'lib/deck/container/expose.rb', line 6
def define(*ports)
attributes[:port] = ports
end
|
#export ⇒ Object
10
11
12
|
# File 'lib/deck/container/expose.rb', line 10
def export
attributes[:port]
end
|