Skip to content

Commit

Permalink
Add a reference task to generate REFERENCE.md
Browse files Browse the repository at this point in the history
Co-authored-by: Garrett Honeycutt <[email protected]>
  • Loading branch information
ekohl and ghoneycutt committed Apr 6, 2019
1 parent f31ba46 commit 052e671
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config_defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Gemfile:
- gem: voxpupuli-release
git: https://github.com/voxpupuli/voxpupuli-release-gem
- gem: puppet-strings
version: '>= 1.0'
version: '>= 2.2'
Rakefile:
config.user: voxpupuli
default_disabled_lint_checks:
Expand All @@ -101,6 +101,7 @@ Rakefile:
- 'disable_single_quote_string_with_variables'
default_enabled_rake_targets:
- 'release_checks'
puppet_strings_patterns: ''
spec/default_facts.yml:
delete: true
spec/classes/coverage_spec.rb:
Expand Down
5 changes: 5 additions & 0 deletions moduleroot/Rakefile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ begin
rescue LoadError
end

desc 'Generate REFERENCE.md'
task :reference, [:debug, :backtrace] do |t, args|
Rake::Task['strings:generate:reference'].invoke('<%= @configs['puppet_strings_patterns'] %>', args[:debug], args[:backtrace])
end

PuppetLint.configuration.log_format = '%{path}:%{line}:%{check}:%{KIND}:%{message}'
PuppetLint.configuration.fail_on_warnings = true
PuppetLint.configuration.absolute_classname_reverse = true
Expand Down

0 comments on commit 052e671

Please sign in to comment.