Sha256: bf7426a51630e5407871cc6f6789e337dcff616db34226b6ee8e71a5da5ba3a2
Contents?: true
Size: 417 Bytes
Versions: 11
Compression:
Stored size: 417 Bytes
Contents
module Kuby module Docker class CopyPhase < Layer DEFAULT_PATHS = ['./'].freeze attr_reader :paths def initialize(*args) super @paths = [] end def <<(path) paths << path end def apply_to(dockerfile) to_copy = paths.empty? ? DEFAULT_PATHS : paths to_copy.each { |path| dockerfile.copy(path, '.') } end end end end
Version data entries
11 entries across 11 versions & 1 rubygems