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

13 lines
298 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?
2021-04-29 21:17:54 +05:30
Feature.enabled?(:phabricator_import, default_enabled: :yaml) &&
2019-09-04 21:01:54 +05:30
Gitlab::CurrentSettings.import_sources.include?('phabricator')
end
end
end