mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
20 lines
341 B
Ruby
20 lines
341 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module Bullet
|
|
extend self
|
|
|
|
def enabled?
|
|
Gitlab.config.bullet.enabled
|
|
end
|
|
|
|
def extra_logging_enabled?
|
|
Gitlab::Utils.to_boolean(ENV['ENABLE_BULLET'], default: false)
|
|
end
|
|
|
|
def configure_bullet?
|
|
Object.const_defined?(:Bullet) && enabled?
|
|
end
|
|
end
|
|
end
|