struct Barista::Behaviors::Software::Merger

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String, destination : String, exclude : Array(String) = [] of String, includes : Array(String) = [] of String, &block : Merger::Strategy) #

[View source]
def self.new(source : String, destination : String, exclude : Array(String) = [] of String, includes : Array(String) = [] of String) #

[View source]

Instance Method Detail

def destination : String #

[View source]
def exclude : Array(String) #

[View source]
def exclusions #

[View source]
def execute(keep_links : Bool = true) #

run the merge. If keep_links is true, the symbolic links will be copied as-is.


[View source]
def includes : Array(String) #

[View source]
def inclusions #

[View source]
def relative_path_for(path, source) #

[View source]
def source : String #

[View source]
def strategy : String, String -> Bool? #

[View source]