debian-mirror-gitlab/scripts/lib/gitlab.rb

14 lines
407 B
Ruby
Raw Normal View History

2022-01-26 12:08:38 +05:30
# frozen_string_literal: true
module Gitlab
module_function
def ee?
2023-03-04 22:38:38 +05:30
File.exist?(File.expand_path('../../ee/app/models/license.rb', __dir__)) && !%w[true 1].include?(ENV['FOSS_ONLY'].to_s) # rubocop:disable Rails/NegateInclude
2022-01-26 12:08:38 +05:30
end
def jh?
2023-03-04 22:38:38 +05:30
ee? && Dir.exist?(File.expand_path('../../jh', __dir__)) && !%w[true 1].include?(ENV['EE_ONLY'].to_s) # rubocop:disable Rails/NegateInclude
2022-01-26 12:08:38 +05:30
end
end