22 lines
420 B
Ruby
22 lines
420 B
Ruby
module Gitlab
|
|
module Ci
|
|
class Config
|
|
module Node
|
|
##
|
|
# Entry that represents a configuration for pipeline stages.
|
|
#
|
|
class Stages < Entry
|
|
include Validatable
|
|
|
|
validations do
|
|
validates :config, array_of_strings: true
|
|
end
|
|
|
|
def self.default
|
|
%w[build test deploy]
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|