Skip to content

struct Barista::Behaviors::Omnibus::CacheCallbacks
inherits Struct #

Callbacks to specify how to update and restore the cache when building

Constructors#

.new#

Methods#

#fetch#

Takes a block with a CacheInfo parameter to define how the artifact for a given task is fetched

Return true if the fetch was successfull. Return false if the fetch failed.

#fetch#

#initialize#

#update#

Takes a block with a Task and the Path where the compressed artifact currently resides

Return true if the update was successfull. Return false if the update failed.

#update#