36 lines
543 B
Ruby
36 lines
543 B
Ruby
# frozen_string_literal: true
|
|
|
|
class MockDeploymentService < Service
|
|
default_value_for :category, 'deployment'
|
|
|
|
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
|
|
|
|
def self.supported_events
|
|
%w()
|
|
end
|
|
|
|
def predefined_variables(project:, environment_name:)
|
|
[]
|
|
end
|
|
|
|
def can_test?
|
|
false
|
|
end
|
|
end
|
|
|
|
MockDeploymentService.prepend_if_ee('EE::MockDeploymentService')
|