Sha256: 07af0f1a130e4429997d56a83e78716bf86072fb35c6441aba67765e3495efed

Contents?: true

Size: 740 Bytes

Versions: 2

Compression:

Stored size: 740 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
# Run process until
# Pass arguments to each step manually for test purpose
# 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

2 entries across 2 versions & 1 rubygems

Version Path
processable-1.0.0 processable.idea
processable-0.0.2 processable.idea