debian-mirror-gitlab/lib/gitlab/static_site_editor/config/file_config/entry/mounts.rb
2021-01-03 14:25:43 +05:30

34 lines
845 B
Ruby

# frozen_string_literal: true
module Gitlab
module StaticSiteEditor
module Config
class FileConfig
module Entry
##
# Entry that represents the mappings of mounted source directories to target paths
#
class Mounts < ::Gitlab::Config::Entry::Node
include ::Gitlab::Config::Entry::Configurable
include ::Gitlab::Config::Entry::Validatable
entry :mount, Entry::Mount, description: 'Configuration of a Static Site Editor mount.'
validations do
validates :config, type: Array, presence: true
end
def skip_config_hash_validation?
true
end
def self.default
[Entry::Mount.default]
end
end
end
end
end
end
end