Module: DataShifter

Extended by:
Axn::Configurable
Defined in:
lib/data_shifter/shift.rb,
lib/data_shifter/errors.rb,
lib/data_shifter/railtie.rb,
lib/data_shifter/version.rb,
lib/data_shifter/settings.rb,
lib/data_shifter/spec_helper.rb,
lib/data_shifter/internal/env.rb,
lib/data_shifter/internal/colors.rb,
lib/data_shifter/internal/output.rb,
lib/data_shifter/internal/progress_bar.rb,
lib/data_shifter/internal/record_utils.rb,
lib/data_shifter/internal/signal_handler.rb,
lib/data_shifter/internal/log_deduplicator.rb,
lib/data_shifter/internal/rake_setup_output.rb,
lib/data_shifter/internal/side_effect_guards.rb,
lib/data_shifter/internal/rake_exception_reporting.rb

Overview

Global configuration for DataShifter, declared via the Axn::Configurable DSL.

Configure via:

DataShifter.configure do |config|
config.allow_external_requests = ["api.readonly.example.com"]
config.suppress_repeated_logs = false
end

Or access directly:

DataShifter.config.progress_enabled = false

This supplies DataShifter.config / .configure / .reset_config! plus per-setting accessors and predicates. progress_enabled and suppress_repeated_logs are overridable: true, so individual shifts can override them per-class (see Shift).

Required from both data_shifter.rb and shift.rb (idempotent, like any require) so include DataShifter.overrides in Shift works whichever is required first.

Defined Under Namespace

Modules: Internal, SpecHelper Classes: ExternalRequestNotAllowedError, Railtie, Shift

Constant Summary collapse

VERSION =
"0.3.4"