2018-08-10 02:45:01 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-06-17 20:01:56 -04:00
|
|
|
class MockDeploymentService < Service
|
|
|
|
default_value_for :category, 'deployment'
|
|
|
|
|
2017-04-05 07:04:34 -04:00
|
|
|
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-06-17 20:01:56 -04:00
|
|
|
|
|
|
|
def self.supported_events
|
|
|
|
%w()
|
|
|
|
end
|
|
|
|
|
2019-08-07 00:40:29 -04:00
|
|
|
def predefined_variables(project:, environment_name:)
|
2019-06-17 20:01:56 -04:00
|
|
|
[]
|
|
|
|
end
|
|
|
|
|
|
|
|
def can_test?
|
|
|
|
false
|
|
|
|
end
|
2017-04-05 07:04:34 -04:00
|
|
|
end
|
2019-09-13 09:26:31 -04:00
|
|
|
|
|
|
|
MockDeploymentService.prepend_if_ee('EE::MockDeploymentService')
|