Class: SampleDataDump::Commands::DecompressAndLoadSampleDataDumps

Inherits:
Object
  • Object
show all
Defined in:
lib/sample_data_dump/commands/decompress_and_load_sample_data_dumps.rb

Instance Method Summary collapse

Constructor Details

#initialize(local_file_system_gateway, data_store_gateway) ⇒ DecompressAndLoadSampleDataDumps

Returns a new instance of DecompressAndLoadSampleDataDumps.



6
7
8
9
# File 'lib/sample_data_dump/commands/decompress_and_load_sample_data_dumps.rb', line 6

def initialize(local_file_system_gateway, data_store_gateway)
  @local_file_system_gateway = local_file_system_gateway
  @data_store_gateway = data_store_gateway
end

Instance Method Details

#resultObject



11
12
13
14
15
16
# File 'lib/sample_data_dump/commands/decompress_and_load_sample_data_dumps.rb', line 11

def result
  @local_file_system_gateway.load_table_configurations.fmap do |table_configs|
    result = process_table_configs_list(table_configs)
    return result if result.failure?
  end
end