class Deck::Container::Cmd

Public Class Methods

new() click to toggle source
# File lib/deck/container/cmd.rb, line 8
def initialize
end

Public Instance Methods

build_command(deps) click to toggle source
# File lib/deck/container/cmd.rb, line 22
def build_command(deps)
  "RUN cd #{attributes[:workdir]} && #{attributes[:command]}"
end
define(command, workdir: '/') click to toggle source
# File lib/deck/container/cmd.rb, line 11
def define(command, workdir: '/')
  step do
    attributes[:command] = command
    attributes[:workdir] = workdir
  end
end
export() click to toggle source
# File lib/deck/container/cmd.rb, line 18
def export
  attributes[:command]
end