Welcome to mirror list, hosted at ThFree Co, Russian Federation.

static_site_generator.rb « entry « file_config « config « static_site_editor « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 593c0951f933ee4cf73e0df2038536f834a77e1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# frozen_string_literal: true

module Gitlab
  module StaticSiteEditor
    module Config
      class FileConfig
        module Entry
          ##
          # Entry that represents the static site generator tool/framework.
          #
          class StaticSiteGenerator < ::Gitlab::Config::Entry::Node
            include ::Gitlab::Config::Entry::Validatable

            validations do
              validates :config, type: String, inclusion: { in: %w[middleman], message: "should be 'middleman'" }
            end

            def self.default
              'middleman'
            end
          end
        end
      end
    end
  end
end