debian-mirror-gitlab/lib/gitlab/usage/metrics/instrumentations/edition_metric.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
358 B
Ruby
Raw Normal View History

2023-07-09 08:55:56 +05:30
# frozen_string_literal: true
module Gitlab
module Usage
module Metrics
module Instrumentations
class EditionMetric < GenericMetric
value do
if Gitlab.ee?
::License.current&.edition || 'EE Free'
else
'CE'
end
end
end
end
end
end
end