# == Description # Replace with a description for <%= class_name_without_nesting %> # === Usage # Replace with usage instructions # class <%= class_name_without_nesting %> < Tap::FileTask # uncomment to: # - pass all inputs to process at once # - define a task that takes no inputs #do_not_iterate # use config to set task configurations # configs have accessors by default #config :key, 'value' # config documentation def process(input) # The process logic goes here. output = filepath(:data, input) # prepare ensures the parent directory for # output exists, and marks it for rollback # in the event of an error prepare(output) File.open(input) do |source| File.open(output, "w") do |target| # ... do something ... end end end end