2018-12-13 13:39:08 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
module Gitlab
|
|
|
|
module Ci
|
|
|
|
class Config
|
|
|
|
module Entry
|
|
|
|
##
|
|
|
|
# Entry that represents Coverage settings.
|
|
|
|
#
|
2019-02-15 15:39:39 +05:30
|
|
|
class Coverage < ::Gitlab::Config::Entry::Node
|
|
|
|
include ::Gitlab::Config::Entry::Validatable
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
validations do
|
|
|
|
validates :config, regexp: true
|
|
|
|
end
|
|
|
|
|
|
|
|
def value
|
|
|
|
@config[1...-1]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|