dev/provisioning/modules/archive/Rakefile
changeset 405 f239c8c5bb94
parent 28 b0b56e0f8c7f
equal deleted inserted replaced
404:0a5eef6ad2fe 405:f239c8c5bb94
     2 require 'puppet-lint/tasks/puppet-lint'
     2 require 'puppet-lint/tasks/puppet-lint'
     3 
     3 
     4 Rake::Task[:lint].clear
     4 Rake::Task[:lint].clear
     5 PuppetLint::RakeTask.new :lint do |config|
     5 PuppetLint::RakeTask.new :lint do |config|
     6   config.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp", "vendor/**/*.pp"]
     6   config.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp", "vendor/**/*.pp"]
     7   config.disable_checks = ['80chars']
     7   config.disable_checks = ['140chars']
     8   config.fail_on_warnings = true
     8   config.fail_on_warnings = true
     9 end
     9 end
    10 
    10 
    11 PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"]
    11 PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"]
    12 
    12 
    13 # Publishing tasks
    13 # Publishing tasks
    14 unless RUBY_VERSION =~ /^1\.8/
    14 unless RUBY_VERSION =~ /^1\./
    15   require 'puppet_blacksmith'
    15   require 'puppet_blacksmith'
    16   require 'puppet_blacksmith/rake_tasks'
    16   require 'puppet_blacksmith/rake_tasks'
    17   require 'github_changelog_generator/task'
       
    18   GitHubChangelogGenerator::RakeTask.new :changelog do |config|
       
    19     m = Blacksmith::Modulefile.new
       
    20     config.future_release = m.version
       
    21     config.release_url = "https://forge.puppetlabs.com/#{m.author}/#{m.name}/%s"
       
    22   end
       
    23 end
    17 end