Sha256: 9558ec38c4a82fc3d044c5bd25b4c17d995edb6c39d27927f55fe635cc2771b5
Contents?: true
Size: 262 Bytes
Versions: 9
Compression:
Stored size: 262 Bytes
Contents
# frozen_string_literal: true module RuntimeBreaker Interruption = Class.new(StandardError) def self.try_to_interrupt(env:) return unless String(ENV[env]).strip.start_with?(/1|t/) raise Interruption, "Runtime breaker activated (#{env})" end end
Version data entries
9 entries across 8 versions & 3 rubygems