debian-mirror-gitlab/lib/gitlab/ci/config/entry/script.rb

25 lines
470 B
Ruby
Raw Normal View History

2018-12-13 13:39:08 +05:30
# frozen_string_literal: true
module Gitlab
module Ci
class Config
2017-08-17 22:00:37 +05:30
module Entry
##
# Entry that represents a script.
#
2019-02-15 15:39:39 +05:30
class Script < ::Gitlab::Config::Entry::Node
include ::Gitlab::Config::Entry::Validatable
2016-08-24 12:49:21 +05:30
validations do
2019-12-26 22:10:19 +05:30
validates :config, nested_array_of_strings: true
end
def value
config.flatten(1)
end
end
end
end
end
end