Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sherlock.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a1471c9de4748c012806d3ebc01664c4a4137733 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

require 'securerandom'

module Gitlab
  module Sherlock
    @collection = Collection.new

    class << self
      attr_reader :collection
    end

    def self.enabled?
      Rails.env.development? && !!ENV['ENABLE_SHERLOCK']
    end

    def self.enable_line_profiler?
      RUBY_ENGINE == 'ruby'
    end
  end
end