Module: Gitlab::Bullet

Extended by:
Bullet
Included in:
Bullet
Defined in:
lib/gitlab/bullet.rb,
lib/gitlab/bullet/exclusions.rb

Defined Under Namespace

Classes: Exclusions

Instance Method Summary collapse

Instance Method Details

#configure_bullet?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/gitlab/bullet.rb', line 15

def configure_bullet?
  Object.const_defined?(:Bullet) && enabled?
end

#enabled?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/gitlab/bullet.rb', line 7

def enabled?
  Gitlab.config.bullet.enabled
end

#extra_logging_enabled?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/gitlab/bullet.rb', line 11

def extra_logging_enabled?
  Gitlab::Utils.to_boolean(ENV['ENABLE_BULLET'], default: false)
end