2018-12-13 13:39:08 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
module Gitlab
|
|
|
|
module Ci
|
|
|
|
class Config
|
2017-08-17 22:00:37 +05:30
|
|
|
module Entry
|
2016-09-13 17:45:13 +05:30
|
|
|
##
|
|
|
|
# Entry that represents a job script.
|
|
|
|
#
|
2017-08-17 22:00:37 +05:30
|
|
|
class Commands < Node
|
2016-09-13 17:45:13 +05:30
|
|
|
include Validatable
|
|
|
|
|
|
|
|
validations do
|
2018-11-18 11:00:15 +05:30
|
|
|
validates :config, array_of_strings_or_string: true
|
2016-09-13 17:45:13 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def value
|
|
|
|
Array(@config)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|