Skip to content

Commit

Permalink
Merge pull request #543 from ekohl/reference-task
Browse files Browse the repository at this point in the history
Add a reference task to generate REFERENCE.md
  • Loading branch information
alexjfisher authored Apr 6, 2019
2 parents 3dd221d + b484d1d commit 6def77b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
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

0 comments on commit 6def77b

Please sign in to comment.