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: 6360527a7aa1db2b2175cb657f4ae39848421074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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