Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a reference task to generate REFERENCE.md #543

Merged
merged 2 commits into from
Apr 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions config_defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Gemfile:
required:
':test':
- gem: puppetlabs_spec_helper
version: '>= 2.11.0'
version: '>= 2.14.0'
- gem: rspec-puppet-facts
version: '>= 1.8.0'
- gem: rspec-puppet-utils
Expand Down 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
8 changes: 6 additions & 2 deletions moduleroot/Rakefile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ require 'puppetlabs_spec_helper/rake_tasks'
# load optional tasks for releases
# only available if gem group releases is installed
begin
require 'puppet_blacksmith/rake_tasks'
require 'voxpupuli/release/rake_tasks'
require 'puppet-strings/tasks'
rescue LoadError
end

Expand Down Expand Up @@ -98,6 +96,12 @@ task 'beaker_sets', [:directory] do |t, args|
end
end

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

begin
require 'github_changelog_generator/task'
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
Expand Down