(maint) update rake tasks
This commit is contained in:
parent
378c01a719
commit
784c32c979
|
@ -3,7 +3,7 @@ require 'puppet-strings'
|
||||||
# Implements the strings:generate task.
|
# Implements the strings:generate task.
|
||||||
namespace :strings do
|
namespace :strings do
|
||||||
desc 'Generate Puppet documentation with YARD.'
|
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 = args[:patterns]
|
||||||
patterns = patterns.split if patterns
|
patterns = patterns.split if patterns
|
||||||
patterns ||= PuppetStrings::DEFAULT_SEARCH_PATTERNS
|
patterns ||= PuppetStrings::DEFAULT_SEARCH_PATTERNS
|
||||||
|
@ -17,6 +17,7 @@ namespace :strings do
|
||||||
# rubocop:disable Style/PreferredHashMethods
|
# rubocop:disable Style/PreferredHashMethods
|
||||||
# `args` is a Rake::TaskArguments and has no key? method
|
# `args` is a Rake::TaskArguments and has no key? method
|
||||||
options[:json] = args[:json] if args.has_key? :json
|
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
|
options[:yard_args] = args[:yard_args].split if args.has_key? :yard_args
|
||||||
# rubocop:enable Style/PreferredHashMethods
|
# rubocop:enable Style/PreferredHashMethods
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue