(maint) update rake tasks

This commit is contained in:
Eric Putnam 2018-02-26 15:36:28 -08:00
parent 378c01a719
commit 784c32c979
No known key found for this signature in database
GPG Key ID: 3FB595AA224A7751
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@ require 'puppet-strings'
# Implements the strings:generate task.
namespace :strings do
desc 'Generate Puppet documentation with YARD.'
task :generate, :patterns, :debug, :backtrace, :markup, :json, :yard_args do |t, args|
task :generate, :patterns, :debug, :backtrace, :markup, :json, :markdown, :yard_args do |t, args|
patterns = args[:patterns]
patterns = patterns.split if patterns
patterns ||= PuppetStrings::DEFAULT_SEARCH_PATTERNS
@ -17,6 +17,7 @@ namespace :strings do
# rubocop:disable Style/PreferredHashMethods
# `args` is a Rake::TaskArguments and has no key? method
options[:json] = args[:json] if args.has_key? :json
options[:markdown] = args[:markdown] if args.has_key? :markdown
options[:yard_args] = args[:yard_args].split if args.has_key? :yard_args
# rubocop:enable Style/PreferredHashMethods