debian-mirror-gitlab/lib/gitlab/phabricator_import.rb
2021-04-29 21:17:54 +05:30

12 lines
298 B
Ruby

# frozen_string_literal: true
module Gitlab
module PhabricatorImport
BaseError = Class.new(StandardError)
def self.available?
Feature.enabled?(:phabricator_import, default_enabled: :yaml) &&
Gitlab::CurrentSettings.import_sources.include?('phabricator')
end
end
end