chef/lib/chef/cookbook_version.rb
# Runs on Chef Server (API); deletes the cookbook from couchdb and also destroys associated
# checksum documents
Runs on Chef Server (API); deletes the cookbook from couchdb and also destroys associated
checksum documents
Runs on Chef Server ( API ) ; deletes the cookbook from couchdb and also destroys associated checksum documents
def purge
      checksums.keys.each do |checksum|
        begin
          Chef::Checksum.cdb_load(checksum, couchdb).purge
        rescue Chef::Exceptions::CouchDBNotFound
        end
      end
      cdb_destroy
    end
def purge checksums . keys . each do | checksum | begin Chef :: Checksum . cdb_load ( checksum , couchdb ) . purge rescue Chef :: Exceptions :: CouchDBNotFound end end cdb_destroy end
Runs on Chef Server (API); deletes the cookbook from couchdb and also destroys associated
checksum documents
Runs on Chef Server ( API ) ; deletes the cookbook from couchdb and also destroys associated checksum documents