struct Barista::Behaviors::Omnibus::CacheCallbacks

Overview

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

Defined in:

barista/behaviors/omnibus/cache_callbacks.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

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.


[View source]
def fetch #

[View source]
def initialize #

[View source]
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.


[View source]
def update #

[View source]