class ChefZero::Endpoints::FileStoreFileEndpoint
The minimum amount of S3 necessary to support cookbook upload/download /file_store/FILE
Public Instance Methods
get(request)
click to toggle source
# File lib/chef_zero/endpoints/file_store_file_endpoint.rb, line 12 def get(request) [200, {"Content-Type" => 'application/x-binary'}, get_data(request) ] end
json_only()
click to toggle source
# File lib/chef_zero/endpoints/file_store_file_endpoint.rb, line 8 def json_only false end
put(request)
click to toggle source
# File lib/chef_zero/endpoints/file_store_file_endpoint.rb, line 16 def put(request) data_store.set(request.rest_path, request.body, :create, :create_dir) json_response(200, {}) end