Class: Deck::Container::Add
Instance Method Summary
collapse
Methods included from Repeatable
#attributes, #next, #step
Methods included from Submodule
#attributes, #get, included, #map, #set, #value
Instance Method Details
#build_command(deps) ⇒ Object
19
20
21
|
# File 'lib/deck/container/add.rb', line 19
def build_command(deps)
cmd = "ADD #{attributes[:file]} #{attributes[:path]}\n"
end
|
#define(file, path: '/') ⇒ Object
8
9
10
11
12
13
|
# File 'lib/deck/container/add.rb', line 8
def define(file, path: '/')
step do
attributes[:file] = file
attributes[:path] = path
end
end
|
#export ⇒ Object
15
16
17
|
# File 'lib/deck/container/add.rb', line 15
def export
attributes[:file]
end
|