Sha256: 17abd5be9f7057938c511918a3ef7e8d0f8a50d92149c6ec3810e78ce4aad362
Contents?: true
Size: 1013 Bytes
Versions: 1
Compression:
Stored size: 1013 Bytes
Contents
# frozen_string_literal: true module SampleDataDump module UseCases class ActorDownloadsSampleDataFiles def initialize(persistence) @persistence = persistence end def result @persistence.load_table_configurations.fmap do |table_configurations| result = process_table_configurations_list(table_configurations) return result if result.failure? end end private def process_table_configurations_list(table_configurations) results = table_configurations.map do |table_configuration| result = process_table_configuration(table_configuration) return result if result.failure? end results.last || Dry::Monads::Success(true) end def process_table_configuration(table_configuration) @persistence.valid?(table_configuration).bind do @persistence.retrieve_compressed_dump_file_from_central_location(table_configuration) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sample_data_dump-0.0.1 | lib/sample_data_dump/use_cases/actor_downloads_sample_data_files.rb |