Barista::Behaviors::Software::Merger
Inherits Struct < Value < Object
Copies files from source to destination
Merger.new("/opt/barista/cache/task/build", "/opt/barista/embedded").execute
Can provide a block that takes a source and target params to stop a file copy
return true from the block to continue with the copy
return false to skip this file copy
Constructors
new(source : String, destination : String, exclude : Array(String) = [] of String, includes : Array(String) = [] of String, &block : Merger::Strategy)
Sourcenew(source : String, destination : String, exclude : Array(String) = [] of String, includes : Array(String) = [] of String)
SourceInstance methods
destination
Sourceexclude
Sourceexclusions
Sourceexecute(keep_links : Bool = true)
run the merge. If keep_links is true, the symbolic links will
be copied as-is.
includes
Sourceinclusions
Sourcerelative_path_for(path, source)
Sourcesource
Sourcestrategy
Source