Sha256: 182b264809cb21099170952767c14701ff7fcfc9f9952f77911af462c2324376
Contents?: true
Size: 877 Bytes
Versions: 45
Compression:
Stored size: 877 Bytes
Contents
require 'chef/chef_fs/file_system/rest_list_entry' require 'chef/chef_fs/data_handler/organization_data_handler' class Chef module ChefFS module FileSystem # /organizations/NAME/org.json # Represents the actual data at /organizations/NAME (the full name, etc.) class OrgEntry < RestListEntry def initialize(name, parent, exists = nil) super(name, parent) @exists = exists end def data_handler Chef::ChefFS::DataHandler::OrganizationDataHandler.new end # /organizations/foo/org.json -> GET /organizations/foo def api_path parent.api_path end def exists? parent.exists? end def delete(recurse) raise Chef::ChefFS::FileSystem::OperationNotAllowedError.new(:delete, self) end end end end end
Version data entries
45 entries across 45 versions & 1 rubygems