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

23 lines
381 B
Ruby
Raw Normal View History

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