From b3771c83f8b420f108fea8b018738270b66be8e2 Mon Sep 17 00:00:00 2001 From: Raphaƫl Pinson Date: Wed, 5 Aug 2015 13:07:53 +0200 Subject: Add publishing rake tasks --- Rakefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index f87e608..adcac18 100644 --- a/Rakefile +++ b/Rakefile @@ -9,3 +9,15 @@ PuppetLint::RakeTask.new :lint do |config| end PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"] + +# Publishing tasks +unless RUBY_VERSION =~ /^1\.8/ + require 'puppet_blacksmith' + require 'puppet_blacksmith/rake_tasks' + require 'github_changelog_generator/task' + GitHubChangelogGenerator::RakeTask.new :changelog do |config| + m = Blacksmith::Modulefile.new + config.future_release = m.version + config.release_url = "https://forge.puppetlabs.com/#{m.author}/#{m.name}/%s" + end +end -- cgit v1.2.3