aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2021-08-26 10:38:24 +0200
committerTim Meusel <tim@bastelfreak.de>2021-08-26 10:38:24 +0200
commit8b9721d3082fb98d3a832022383b750e02b2af89 (patch)
tree5baad7f458031985faf84c25b5fd5f5c645ee563 /Rakefile
parent8f5ac2ce90213e98770a337b650b879494c55819 (diff)
downloadpuppet-ferm-8b9721d3082fb98d3a832022383b750e02b2af89.tar.gz
puppet-ferm-8b9721d3082fb98d3a832022383b750e02b2af89.tar.bz2
modulesync 4.2.0
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile23
1 files changed, 17 insertions, 6 deletions
diff --git a/Rakefile b/Rakefile
index d1bf749..80b799d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,9 +1,22 @@
+# Managed by modulesync - DO NOT EDIT
+# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
+
# Attempt to load voxupuli-test (which pulls in puppetlabs_spec_helper),
# otherwise attempt to load it directly.
begin
require 'voxpupuli/test/rake'
rescue LoadError
- require 'puppetlabs_spec_helper/rake_tasks'
+ begin
+ require 'puppetlabs_spec_helper/rake_tasks'
+ rescue LoadError
+ end
+end
+
+# load optional tasks for acceptance
+# only available if gem group releases is installed
+begin
+ require 'voxpupuli/acceptance/rake'
+rescue LoadError
end
# load optional tasks for releases
@@ -34,14 +47,12 @@ begin
require 'github_changelog_generator/task'
require 'puppet_blacksmith'
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
- version = (Blacksmith::Modulefile.new).version
- config.future_release = "v#{version}" if version =~ /^\d+\.\d+.\d+$/
+ metadata = Blacksmith::Modulefile.new
+ config.future_release = "v#{metadata.version}" if metadata.version =~ /^\d+\.\d+.\d+$/
config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file.\nEach new release typically also includes the latest modulesync defaults.\nThese should not affect the functionality of the module."
config.exclude_labels = %w{duplicate question invalid wontfix wont-fix modulesync skip-changelog}
config.user = 'voxpupuli'
- metadata_json = File.join(File.dirname(__FILE__), 'metadata.json')
- metadata = JSON.load(File.read(metadata_json))
- config.project = metadata['name']
+ config.project = metadata.metadata['name']
end
# Workaround for https://github.com/github-changelog-generator/github-changelog-generator/issues/715