class Rum::Docker::Build

Docker build command object.

Public Class Methods

new(options:nil, path:nil, &block) click to toggle source

Initialize Docker build command with OPTIONS and PATH. Evaluates the &block if given.

Calls superclass method Rum::Docker::Executable::new
# File lib/rumrunner/docker.rb, line 195
def initialize(options:nil, path:nil, &block)
  @path = path
  super options: options, &block
end

Public Instance Methods

each() { |x| ... } click to toggle source

Yield the Docker build commmand word-by-word.

Calls superclass method Rum::Docker::Executable#each
# File lib/rumrunner/docker.rb, line 202
def each
  super{|x| yield x }
  yield @path || "."
end
path() click to toggle source

Access PATH with method.

# File lib/rumrunner/docker.rb, line 190
attr_method_accessor :path