struct Barista::Behaviors::Omnibus::CacheCallbacks
- Barista::Behaviors::Omnibus::CacheCallbacks
- Struct
- Value
- Object
Overview
Callbacks to specify how to update and restore the cache when building
Defined in:
barista/behaviors/omnibus/cache_callbacks.crConstructors
Instance Method Summary
-
#fetch(&block : Barista::Behaviors::Omnibus::Cacher -> Bool)
Takes a block with a
CacheInfo
parameter to define how the artifact for a given task is fetched - #fetch
- #initialize
-
#update(&block : Barista::Behaviors::Omnibus::Task, String -> Bool)
Takes a block with a
Task
and the Path where the compressed artifact currently resides - #update
Constructor Detail
Instance Method Detail
def fetch(&block : Barista::Behaviors::Omnibus::Cacher -> Bool)
#
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.
def update(&block : Barista::Behaviors::Omnibus::Task, String -> Bool)
#
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.