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

21 lines
462 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
module Gitlab
module Ci
class Config
module Entry
##
# Entry that represents the interrutible value.
#
2020-01-01 13:55:28 +05:30
class Timeout < ::Gitlab::Config::Entry::Node
2019-12-26 22:10:19 +05:30
include ::Gitlab::Config::Entry::Validatable
validations do
2020-01-01 13:55:28 +05:30
validates :config, duration: { limit: ChronicDuration.output(Project::MAX_BUILD_TIMEOUT) }
2019-12-26 22:10:19 +05:30
end
end
end
end
end
end