From 9160e6f97019072e38057e239ddc09c377edef7e Mon Sep 17 00:00:00 2001 From: Gareth Rushgrove Date: Wed, 3 Feb 2016 14:23:53 +0100 Subject: [PATCH] (PDOC-70) Always generate the JSON doc when running the rake task I'm super enthusiastic about the potential for folks to build things on top of the JSON output, we've had several related conversations at Config Management Camp and on puppet-dev recently. I think this is a sane default, and calling the file strings.json seems a nice reinforcement. --- lib/puppet-strings/rake_tasks.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/puppet-strings/rake_tasks.rb b/lib/puppet-strings/rake_tasks.rb index 3b3cb33..a7329f1 100644 --- a/lib/puppet-strings/rake_tasks.rb +++ b/lib/puppet-strings/rake_tasks.rb @@ -6,7 +6,9 @@ require 'puppet_x/puppetlabs/strings/util' namespace :strings do desc 'Generate Puppet documentation with YARD.' task :generate do - PuppetX::PuppetLabs::Strings::Util.generate + PuppetX::PuppetLabs::Strings::Util.generate([ + {emit_json: 'strings.json'} + ]) end desc 'Serve YARD documentation for modules.'