Method: Cody::Dsl::Project#local_cache

Defined in:
lib/cody/dsl/project.rb

#local_cache(enable = true) ⇒ Object



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/cody/dsl/project.rb', line 99

def local_cache(enable=true)
  cache = if enable
    {
      type: "LOCAL",
      modes: [
          "LOCAL_DOCKER_LAYER_CACHE",
          "LOCAL_SOURCE_CACHE",
          "LOCAL_CUSTOM_CACHE"
      ]
    }
  else
    {type: "NO_CACHE"}
  end
  @properties[:cache] = cache
end