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

13 lines
274 B
Ruby
Raw Normal View History

2019-09-04 21:01:54 +05:30
# frozen_string_literal: true
module Gitlab
module PhabricatorImport
BaseError = Class.new(StandardError)
def self.available?
2022-07-16 23:28:13 +05:30
Feature.enabled?(:phabricator_import) &&
2019-09-04 21:01:54 +05:30
Gitlab::CurrentSettings.import_sources.include?('phabricator')
end
end
end