Sha256: 326093559ba0c7900154294c255a9acf65cd2b89351f23658b2e627d4eba4594

Contents?: true

Size: 836 Bytes

Versions: 8

Compression:

Stored size: 836 Bytes

Contents

require "chef/chef_fs/file_system/chef_server/rest_list_entry"
require "chef/chef_fs/data_handler/organization_data_handler"

class Chef
  module ChefFS
    module FileSystem
      module ChefServer
        # /organizations/NAME/org.json
        # Represents the actual data at /organizations/NAME (the full name, etc.)
        class OrgEntry < RestListEntry
          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
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
chef-12.10.24 lib/chef/chef_fs/file_system/chef_server/org_entry.rb
chef-12.10.24-universal-mingw32 lib/chef/chef_fs/file_system/chef_server/org_entry.rb
chef-12.9.41 lib/chef/chef_fs/file_system/chef_server/org_entry.rb
chef-12.9.41-universal-mingw32 lib/chef/chef_fs/file_system/chef_server/org_entry.rb
chef-12.9.38 lib/chef/chef_fs/file_system/chef_server/org_entry.rb
chef-12.9.38-universal-mingw32 lib/chef/chef_fs/file_system/chef_server/org_entry.rb
chef-12.7.2 lib/chef/chef_fs/file_system/chef_server/org_entry.rb
chef-12.7.2-universal-mingw32 lib/chef/chef_fs/file_system/chef_server/org_entry.rb