Method: Dockly::BuildCache::Base#execute!

Defined in:
lib/dockly/build_cache/base.rb

#execute!Object



22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/dockly/build_cache/base.rb', line 22

def execute!
  debug "Looking for cache for hash: #{hash_output}"
  if up_to_date?
    debug "build cache up to date, pulling from s3"
    insert_cache
  else
    insert_latest
    debug "build cache out of date, running build"
    run_build
  end
  debug "finished build cache"
end