lib/berkshelf/api/endpoint/v1.rb in berkshelf-api-0.2.0 vs lib/berkshelf/api/endpoint/v1.rb in berkshelf-api-1.0.0

- old
+ new

@@ -10,10 +10,15 @@ rack_response(body, e.status, "Content-type" => "application/json") end desc "list all known cookbooks" get 'universe' do - cache_manager.cache + if cache_manager.warmed? + cache_manager.cache + else + header "Retry-After", 600 + status 503 + end end end end end