Class: Deck::Container::Start
- Inherits:
-
Object
- Object
- Deck::Container::Start
show all
- Includes:
- Submodule
- Defined in:
- lib/deck/container/start.rb
Instance Method Summary
collapse
Methods included from Submodule
#attributes, #get, included, #map, #set, #value
Instance Method Details
#build_command(deps) ⇒ Object
16
17
18
|
# File 'lib/deck/container/start.rb', line 16
def build_command(deps)
"CMD cd #{attributes[:workdir]} && #{attributes[:command]}"
end
|
#define(type, command, workdir: '.') ⇒ Object
6
7
8
9
10
|
# File 'lib/deck/container/start.rb', line 6
def define(type, command, workdir: '.')
attributes[:type] = type
attributes[:command] = command
attributes[:workdir] = workdir
end
|
#export ⇒ Object
12
13
14
|
# File 'lib/deck/container/start.rb', line 12
def export
attributes[:command]
end
|