struct Barista::Behaviors::Software::Merger
- Barista::Behaviors::Software::Merger
- Struct
- Value
- Object
Overview
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
Defined in:
barista/behaviors/software/merger.crConstructors
- .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)
Instance Method Summary
- #destination : String
- #exclude : Array(String)
- #exclusions
-
#execute(keep_links : Bool = true)
run the merge.
- #includes : Array(String)
- #inclusions
- #relative_path_for(path, source)
- #source : String
- #strategy : String, String -> Bool?
Constructor Detail
def self.new(source : String, destination : String, exclude : Array(String) = [] of String, includes : Array(String) = [] of String, &block : Merger::Strategy)
#
def self.new(source : String, destination : String, exclude : Array(String) = [] of String, includes : Array(String) = [] of String)
#
Instance Method Detail
def execute(keep_links : Bool = true)
#
run the merge. If keep_links
is true, the symbolic links will
be copied as-is.