Class: EcoRake::Lib::People::SyncLaunch

Inherits:
BaseTask show all
Defined in:
lib/eco-rake/lib/people/sync_launch.rb

Overview

TODO:

on_error_email to ensure always notified

TODO:

ping some back-end that it was run

  • Should be able to log at debug level.

Constant Summary collapse

ADDITIONAL_OPTIONS =
%i[only_stats no_policy simulate no_email].freeze
FORWARD_RULES =
{
  schema:     ->(schema) { "-schema-id \"#{schema}\"" },
  only_stats: '-feed-only-stats',
  no_policy:  '-skip-batch-policy',
  simulate:   '-simulate',
  no_email:   '-no-email'
}.freeze

Constants inherited from EcoRake

VERSION

Instance Method Summary collapse

Instance Method Details

#task(*_args) ⇒ Object



30
31
32
33
34
# File 'lib/eco-rake/lib/people/sync_launch.rb', line 30

def task(*_args)
  return missing_files_notify unless latest_file
  return process_deltas       if delta?
  return process_full_file    if full? || delta_last?
end