def find_manifest_or_create
      if (manifest = Dir.entries("#{base_dir}").detect { |entry| entry =~ MANIFEST_REGEX })
        "#{base_dir}/#{manifest}"
      else
        manifest = "#{base_dir}/.breakfast-manifest-#{SecureRandom.hex(16)}.json"
        File.open(manifest, "w") { |manifest| manifest.write({}.to_json) }
        manifest
      end
    end
def find_manifest_or_create
      if (manifest = Dir.entries("#{base_dir}").detect { |entry| entry =~ MANIFEST_REGEX })
        "#{base_dir}/#{manifest}"
      else
        manifest = "#{base_dir}/.breakfast-manifest-#{SecureRandom.hex(16)}.json"
        File.open(manifest, "w") { |manifest| manifest.write({}.to_json) }
        manifest
      end
    end
Creates a or finds a manifest file in a given directory. The manifest
 file is is prefixed with a dot ('.') and given a random string to ensure
 the file is not served or easily discoverable.