2018-11-20 20:47:30 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-02-22 17:27:13 +05:30
|
|
|
# Deprecated, to be deleted in 13.8 (https://gitlab.com/gitlab-org/gitlab/-/issues/293914)
|
|
|
|
#
|
|
|
|
# This was a class used only in development environment but became unusable
|
|
|
|
# since DeploymentService was deleted
|
2019-09-04 21:01:54 +05:30
|
|
|
class MockDeploymentService < Service
|
|
|
|
default_value_for :category, 'deployment'
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
def title
|
|
|
|
'Mock deployment'
|
|
|
|
end
|
|
|
|
|
|
|
|
def description
|
|
|
|
'Mock deployment service'
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.to_param
|
|
|
|
'mock_deployment'
|
|
|
|
end
|
|
|
|
|
|
|
|
# No terminals support
|
|
|
|
def terminals(environment)
|
|
|
|
[]
|
|
|
|
end
|
2019-09-04 21:01:54 +05:30
|
|
|
|
|
|
|
def self.supported_events
|
|
|
|
%w()
|
|
|
|
end
|
|
|
|
|
2019-10-12 21:52:04 +05:30
|
|
|
def predefined_variables(project:, environment_name:)
|
2019-09-04 21:01:54 +05:30
|
|
|
[]
|
|
|
|
end
|
|
|
|
|
|
|
|
def can_test?
|
|
|
|
false
|
|
|
|
end
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|