struct Barista::Behaviors::Software::Merger
inherits Struct
#
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)
#
.new(source : String, destination : String, exclude : Array(String) = [] of String, includes : Array(String) = [] of String)
#
Methods#
#destination
#
#exclude
#
#exclusions
#
#execute(keep_links : Bool = true)
#
run the merge. If keep_links
is true, the symbolic links will
be copied as-is.