@cookbook_name = metadata.name unless metadata.nil?