Module: Resync::Client::Mixins::DumpIndex

Includes:
ResourceClientDelegate
Included in:
Resync::ChangeDumpIndex, ResourceDumpIndex
Defined in:
lib/resync/client/mixins/dump_index.rb

Overview

A resource container whose resources are ZippedResourceLists

Instance Attribute Summary

Attributes included from ClientDelegator

#client_delegate

Instance Method Summary collapse

Methods included from ResourceClientDelegate

#resources=

Methods included from ClientDelegator

#client, #client=

Instance Method Details

#all_zip_packagesEnumerator::Lazy<Resync::Client::Zip::ZipPackage>

Downloads and parses each resource list and returns a flattened enumeration of all zip packages in each contained list. Each contained list is only downloaded as needed, and only downloaded once.

Returns:



15
16
17
18
19
# File 'lib/resync/client/mixins/dump_index.rb', line 15

def all_zip_packages
  resources.lazy.flat_map do |r|
    package_for(r)
  end
end