    # File lib/chef/cookbook/cookbook_version_loader.rb, line 71
          def cookbook_version
            return nil if empty?

            Chef::CookbookVersion.new(@cookbook_name.to_sym).tap do |c|
              c.root_dir             = @cookbook_path
              c.attribute_filenames  = cookbook_settings[:attribute_filenames].values
              c.definition_filenames = cookbook_settings[:definition_filenames].values
              c.recipe_filenames     = cookbook_settings[:recipe_filenames].values
              c.template_filenames   = cookbook_settings[:template_filenames].values
              c.file_filenames       = cookbook_settings[:file_filenames].values
              c.library_filenames    = cookbook_settings[:library_filenames].values
              c.resource_filenames   = cookbook_settings[:resource_filenames].values
              c.provider_filenames   = cookbook_settings[:provider_filenames].values
              c.root_filenames       = cookbook_settings[:root_filenames].values
              c.metadata_filenames   = @metadata_filenames
              c.metadata             = metadata(c)
            end
          end