Module: DataShifter::Internal::RakeExceptionReporting

Defined in:
lib/data_shifter/internal/rake_exception_reporting.rb

Overview

Tracks whether Axn’s on_error path already printed failure context (summary). Used by rake tasks to avoid duplicating setup failure output.

Constant Summary collapse

KEY =
:data_shifter_rake_failure_summary_reported

Class Method Summary collapse

Class Method Details

.clear!Object



14
15
16
# File 'lib/data_shifter/internal/rake_exception_reporting.rb', line 14

def clear!
  ActiveSupport::IsolatedExecutionState.delete(KEY)
end

.failure_summary_reported?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/data_shifter/internal/rake_exception_reporting.rb', line 22

def failure_summary_reported?
  ActiveSupport::IsolatedExecutionState[KEY] == true
end

.mark_failure_summary_reported!Object



18
19
20
# File 'lib/data_shifter/internal/rake_exception_reporting.rb', line 18

def mark_failure_summary_reported!
  ActiveSupport::IsolatedExecutionState[KEY] = true
end