Class: Deck::Container::Add

Inherits:
Object
  • Object
show all
Includes:
Repeatable, Submodule
Defined in:
lib/deck/container/add.rb

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

#exportObject



15
16
17
# File 'lib/deck/container/add.rb', line 15

def export
  attributes[:file]
end