class PipeFitter::Pipeline::DeployFiles

Public Class Methods

new(objs, filepath) click to toggle source
# File lib/pipe_fitter/pipeline.rb, line 276
def initialize(objs, filepath)
  @objs = objs
  @filepath = filepath
end

Public Instance Methods

each() { |h| ... } click to toggle source
# File lib/pipe_fitter/pipeline.rb, line 281
def each
  (@objs || []).map do |df|
    h = { src: File.join(@filepath.dirname, df["src"]), dst: df["dst"] }
    yield h
  end
end