31 lines
566 B
Ruby
31 lines
566 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Ci
|
|
##
|
|
# This module implements methods that need to be implemented by CI/CD
|
|
# entities that are supposed to go through pipeline processing
|
|
# services.
|
|
#
|
|
#
|
|
module Processable
|
|
def schedulable?
|
|
raise NotImplementedError
|
|
end
|
|
|
|
def action?
|
|
raise NotImplementedError
|
|
end
|
|
|
|
def when
|
|
read_attribute(:when) || 'on_success'
|
|
end
|
|
|
|
def expanded_environment_name
|
|
raise NotImplementedError
|
|
end
|
|
|
|
def scoped_variables_hash
|
|
raise NotImplementedError
|
|
end
|
|
end
|
|
end
|