Class: Rum::Docker::Build

Inherits:
Object
  • Object
show all
Extended by:
AttrCallable
Includes:
Executable
Defined in:
lib/rumrunner/docker.rb

Instance Attribute Summary

Attributes included from Executable

#options

Instance Method Summary collapse

Methods included from AttrCallable

attr_method_accessor

Methods included from Executable

#method_missing, #to_s, #with_defaults

Constructor Details

#initialize(options: nil, path: nil, &block) ⇒ Build

Returns a new instance of Build.



99
100
101
102
# File 'lib/rumrunner/docker.rb', line 99

def initialize(options:nil, path:nil, &block)
  @path = path
  super options: options, &block
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Rum::Docker::Executable

Instance Method Details

#each {|@path || "."| ... } ⇒ Object

Yields:

  • (@path || ".")


104
105
106
107
# File 'lib/rumrunner/docker.rb', line 104

def each
  super{|x| yield x }
  yield @path || "."
end