class Chef::ChefFS::FileSystem::ChefServer::CookbookArtifactDir

Public Class Methods

new(name, parent, options = {}) click to toggle source
Calls superclass method
# File lib/chef/chef_fs/file_system/chef_server/cookbook_artifact_dir.rb, line 26
def initialize(name, parent, options = {})
  super(name, parent)
  @cookbook_name, dash, @version = name.rpartition("-")
end

Public Instance Methods

copy_from(other, options = {}) click to toggle source
# File lib/chef/chef_fs/file_system/chef_server/cookbook_artifact_dir.rb, line 31
def copy_from(other, options = {})
  raise OperationNotAllowedError.new(:write, self, nil, "cannot be updated: cookbook artifacts are immutable once uploaded")
end