2016-07-18 06:37:42 -04:00
|
|
|
module Gitlab
|
|
|
|
module Ci
|
|
|
|
class Config
|
2016-11-14 04:31:45 -05:00
|
|
|
module Entry
|
2016-07-18 06:37:42 -04:00
|
|
|
##
|
2016-07-29 06:30:38 -04:00
|
|
|
# Entry that represents a trigger policy for the job.
|
2016-07-18 06:37:42 -04:00
|
|
|
#
|
2016-11-14 04:31:45 -05:00
|
|
|
class Trigger < Node
|
2016-07-18 06:37:42 -04:00
|
|
|
include Validatable
|
|
|
|
|
|
|
|
validations do
|
2016-12-07 00:01:34 -05:00
|
|
|
validates :config, array_of_strings_or_regexps: true
|
2016-07-18 06:37:42 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|