From ef1735ffdadb10371036989b10756d341b64d292 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Tue, 12 Aug 2014 16:08:21 +0300 Subject: Support type_as_directory for git output If set to true, repo will have directory matching model type, instead of new repo. --- lib/oxidized/output/git.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/oxidized/output') diff --git a/lib/oxidized/output/git.rb b/lib/oxidized/output/git.rb index df76da3..2b86f3f 100644 --- a/lib/oxidized/output/git.rb +++ b/lib/oxidized/output/git.rb @@ -34,6 +34,10 @@ class Git < Output outputs.type(type).each do |output| (type_cfg << output; next) if not output.name type_file = file + '--' + output.name + if @cfg.type_as_directory? + type_file = type + '/' + type_file + type_repo = repo + end update type_repo, type_file, output end update type_repo, file, type_cfg unless type_cfg.empty? -- cgit v1.2.1