Sha256: 7c82a030c07c627c41fe22dbae6fc4d349a7b29dfbd7ae3d9a110ba2a8589175
Contents?: true
Size: 885 Bytes
Versions: 1
Compression:
Stored size: 885 Bytes
Contents
require "aws-sdk-kinesis" require "delayed_job" require "json-schema" require "request_store" require "journaled/engine" require 'journaled/enqueue' module Journaled mattr_accessor :default_app_name mattr_accessor(:job_priority) { 20 } mattr_accessor(:http_idle_timeout) { 5 } mattr_accessor(:http_open_timeout) { 15 } mattr_accessor(:http_read_timeout) { 60 } def development_or_test? %w(development test).include?(Rails.env) end def enabled? !['0', 'false', false, 'f', ''].include?(ENV.fetch('JOURNALED_ENABLED', !development_or_test?)) end def schema_providers @schema_providers ||= [Journaled::Engine, Rails] end def commit_hash ENV.fetch('GIT_COMMIT') end def actor_uri Journaled::ActorUriProvider.instance.actor_uri end module_function :development_or_test?, :enabled?, :schema_providers, :commit_hash, :actor_uri end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
journaled-2.4.0 | lib/journaled.rb |