mirror of
https://github.com/ardichoke/puppet-klipper.git
synced 2026-05-11 02:25:37 -04:00
Update PDK stuff
This commit is contained in:
9
Rakefile
9
Rakefile
@@ -1,12 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'bundler'
|
||||
require 'puppet_litmus/rake_tasks' if Bundler.rubygems.find_name('puppet_litmus').any?
|
||||
require 'puppet_litmus/rake_tasks' if Gem.loaded_specs.key? 'puppet_litmus'
|
||||
require 'puppetlabs_spec_helper/rake_tasks'
|
||||
require 'puppet-syntax/tasks/puppet-syntax'
|
||||
require 'puppet_blacksmith/rake_tasks' if Bundler.rubygems.find_name('puppet-blacksmith').any?
|
||||
require 'github_changelog_generator/task' if Bundler.rubygems.find_name('github_changelog_generator').any?
|
||||
require 'puppet-strings/tasks' if Bundler.rubygems.find_name('puppet-strings').any?
|
||||
require 'github_changelog_generator/task' if Gem.loaded_specs.key? 'github_changelog_generator'
|
||||
require 'puppet-strings/tasks' if Gem.loaded_specs.key? 'puppet-strings'
|
||||
|
||||
def changelog_user
|
||||
return unless Rake.application.top_level_tasks.include? "changelog"
|
||||
@@ -44,7 +43,7 @@ end
|
||||
PuppetLint.configuration.send('disable_relative')
|
||||
|
||||
|
||||
if Bundler.rubygems.find_name('github_changelog_generator').any?
|
||||
if Gem.loaded_specs.key? 'github_changelog_generator'
|
||||
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
||||
raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil?
|
||||
config.user = "#{changelog_user}"
|
||||
|
||||
Reference in New Issue
Block a user