diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-31 17:36:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-31 17:37:06 +0300 |
commit | 8e13b6a8759a43bb8a90444139b4fbb4205a1b74 (patch) | |
tree | 7db3bb37340fbaec54819ff688ecaefc2d406c59 /lib/gitlab/plantuml.rb | |
parent | 1ebdda69d61ae26379f8fac27671103374031944 (diff) |
Add latest changes from gitlab-org/security/gitlab@16-2-stable-ee
Diffstat (limited to 'lib/gitlab/plantuml.rb')
-rw-r--r-- | lib/gitlab/plantuml.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/gitlab/plantuml.rb b/lib/gitlab/plantuml.rb new file mode 100644 index 00000000000..9ec544452fd --- /dev/null +++ b/lib/gitlab/plantuml.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +require "asciidoctor_plantuml/plantuml" + +module Gitlab + module Plantuml + class << self + def configure + Asciidoctor::PlantUml.configure do |conf| + conf.url = Gitlab::CurrentSettings.plantuml_url + conf.png_enable = Gitlab::CurrentSettings.plantuml_enabled + conf.svg_enable = false + conf.txt_enable = false + + conf + end + end + end + end +end |