/environments/NAME
# File lib/chef_zero/endpoints/environment_endpoint.rb, line 9 def delete(request) if request.rest_path[1] == "_default" # 405, really? error(405, "The '_default' environment cannot be modified.") else super(request) end end
# File lib/chef_zero/endpoints/environment_endpoint.rb, line 26 def populate_defaults(request, response_json) response = JSON.parse(response_json, :create_additions => false) response = DataNormalizer.normalize_environment(response, request.rest_path[1]) JSON.pretty_generate(response) end
Generated with the Darkfish Rdoc Generator 2.