From 72c8e1aff3247aa9f55a58f0fed5ec6c42baa44f Mon Sep 17 00:00:00 2001 From: Horacio Sanson Date: Thu, 5 Feb 2015 01:05:30 +0900 Subject: [PATCH] Add option to configure PlantUML endpoint --- bin/gollum | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/gollum b/bin/gollum index b47875ef..0ca9d7f3 100755 --- a/bin/gollum +++ b/bin/gollum @@ -162,7 +162,6 @@ MSG end opts.separator "" - end # Read command line options into `options` hash @@ -208,6 +207,7 @@ if options[:irb] if !wiki.exist? then raise Gollum::InvalidGitRepositoryError end + puts puts "Loaded Gollum wiki at:" puts "#{File.expand_path(gollum_path).inspect}" @@ -243,6 +243,13 @@ else require cfg end + if wiki_options[:plantuml_url] + Gollum::Filter::PlantUML.configure do |config| + puts "Using #{wiki_options[:plantuml_url]} as PlantUML endpoint" + config.url = wiki_options[:plantuml_url] + end + end + base_path = wiki_options[:base_path] if base_path.nil?