diff options
author | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2015-08-05 13:03:27 +0200 |
---|---|---|
committer | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2015-08-05 13:03:27 +0200 |
commit | 2872a7a10a05c8a90c23e1925c0bddf782885685 (patch) | |
tree | 4c2ab5d014b0a3f22619c82562834738eb2d74c4 /Rakefile | |
parent | 2ed8f49e199ffe3e234b9528fb8cb1c678a64f9e (diff) |
No publishing tools on 1.8
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -1,8 +1,5 @@ require 'puppetlabs_spec_helper/rake_tasks' require 'puppet-lint/tasks/puppet-lint' -require 'github_changelog_generator/task' -require 'puppet_blacksmith' -require 'puppet_blacksmith/rake_tasks' Rake::Task[:lint].clear PuppetLint::RakeTask.new :lint do |config| @@ -13,8 +10,14 @@ end PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"] -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" +# 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 |