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 Jan 11, 2019
1 parent c318d68 commit c6ca72d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions config_defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ Rakefile:
default_enabled_rake_targets:
- 'metadata_lint'
- 'release_checks'
puppet_strings_patterns: ''
spec/default_facts.yml:
delete: true
spec/classes/coverage_spec.rb:
Expand Down
9 changes: 9 additions & 0 deletions moduleroot/Rakefile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ require 'puppetlabs_spec_helper/rake_tasks'
begin
require 'puppet_blacksmith/rake_tasks'
require 'voxpupuli/release/rake_tasks'
rescue LoadError
end

begin
require 'puppet-strings/tasks'

desc 'Generate REFERENCE.md'
task :reference do
Rake::Task['strings:generate'].invoke('<%= @configs['puppet_strings_patterns'] %>', nil, nil, nil, 'false', 'true')
end
rescue LoadError
end

Expand Down

0 comments on commit c6ca72d

Please sign in to comment.