mirror of
https://github.com/voxpupuli/puppet-hashi_stack.git
synced 2025-05-28 14:25:37 +01:00
modulesync 4.2.0
This commit is contained in:
parent
4032596ba4
commit
226505f4fd
16 changed files with 91 additions and 73 deletions
23
Rakefile
23
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue