debian-mirror-gitlab/lib/gitlab/ci/config/entry/hidden.rb
2019-09-30 21:07:59 +05:30

32 lines
615 B
Ruby

# frozen_string_literal: true
module Gitlab
module Ci
class Config
module Entry
##
# Entry that represents a hidden CI/CD key.
#
class Hidden < ::Gitlab::Config::Entry::Node
include ::Gitlab::Config::Entry::Validatable
validations do
validates :config, presence: true
end
def self.matching?(name, config)
name.to_s.start_with?('.')
end
def self.visible?
false
end
def relevant?
false
end
end
end
end
end
end