Class: Gitlab::StaticSiteEditor::Config::FileConfig::Entry::Mount

Inherits:
Config::Entry::Node show all
Includes:
Config::Entry::Attributable, Config::Entry::Validatable
Defined in:
lib/gitlab/static_site_editor/config/file_config/entry/mount.rb

Overview

Entry that represents the mappings of mounted source directories to target paths

Constant Summary collapse

ALLOWED_KEYS =
%i[source target].freeze

Constants inherited from Config::Entry::Node

Config::Entry::Node::InvalidError

Instance Attribute Summary

Attributes inherited from Config::Entry::Node

#config, #default, #deprecation, #description, #key, #metadata, #parent

Class Method Summary collapse

Methods included from Config::Entry::Validatable

#compose!, #errors, included, #validate, #validator

Methods inherited from Config::Entry::Node

#[], #add_warning, #ancestors, aspects, #compose!, #descendants, #errors, #hash?, #initialize, #inspect, #integer?, #leaf?, #location, #opt, #relevant?, #specified?, #string?, #valid?, #value, #warnings, with_aspect

Constructor Details

This class inherits a constructor from Gitlab::Config::Entry::Node

Class Method Details

.defaultObject


26
27
28
29
30
31
32
33
# File 'lib/gitlab/static_site_editor/config/file_config/entry/mount.rb', line 26

def self.default
  # NOTE: This is the default for middleman projects.  Ideally, this would be determined
  #       based on the defaults for whatever `static_site_generator` is configured.
  {
    source: 'source',
    target: ''
  }
end