2016-11-14 03:56:39 +00:00
|
|
|
module Gitlab
|
|
|
|
module Ci
|
|
|
|
class Config
|
2016-11-18 03:42:35 +00:00
|
|
|
module Entry
|
2016-11-14 03:56:39 +00:00
|
|
|
##
|
2016-11-21 04:51:29 +00:00
|
|
|
# Entry that represents Coverage settings.
|
2016-11-14 03:56:39 +00:00
|
|
|
#
|
2016-11-18 03:42:35 +00:00
|
|
|
class Coverage < Node
|
2016-11-14 03:56:39 +00:00
|
|
|
include Validatable
|
|
|
|
|
|
|
|
validations do
|
2016-11-26 03:02:08 +00:00
|
|
|
validates :config, regexp: true
|
2016-11-14 03:56:39 +00:00
|
|
|
end
|
2016-12-13 04:53:12 +00:00
|
|
|
|
|
|
|
def value
|
|
|
|
@config[1...-1]
|
|
|
|
end
|
2016-11-14 03:56:39 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|