2022-05-07 20:08:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Ci
|
|
|
|
module HasDeploymentName
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
def count_user_deployment?
|
2022-07-16 23:28:13 +05:30
|
|
|
deployment_name?
|
2022-05-07 20:08:51 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def deployment_name?
|
|
|
|
self.class::DEPLOYMENT_NAMES.any? { |n| name.downcase.include?(n) }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|