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

27 lines
643 B
Ruby

# 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