Sha256: e4dfcb7fcf3d62aaa5f44b93e59f2a743fc1fb634f318172484c1b6005a73a9c
Contents?: true
Size: 664 Bytes
Versions: 1
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true class LocationsUploader < Processable::Commander configure do |config| config.verbose = true end step :load_csv do result = "1" end step :transform_data, LocationsUploaderStep step :save_to_database do result_of_load_csv end end class LocationsUploaderStep < Processable::Step end # Order of steps as it's been defined # In the result you will get either result of the last step # Print every step (option to disable) # How to validate? # Stop if something went wrong # Steps cannot use the same name (validate it) # Using a class instead of block and move all logic there (maybe process of processes)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
processable-0.0.1 | processable.idea |