summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-03-03 11:47:40 +0000
committerThom May <thom@chef.io>2016-03-03 11:47:40 +0000
commitd0461c6c2439a892690a9b9974cd39dbe01c1d00 (patch)
tree6bdf555a9b760e327f57c6337952640100ca35b1 /Rakefile
parenta4d98365c1d68d7a24fba62783538951d2bbd2e0 (diff)
downloadchef-d0461c6c2439a892690a9b9974cd39dbe01c1d00.tar.gz
guard against changelog generator not being installedtm/option_changelog_generator
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/Rakefile b/Rakefile
index 2fdd1a7e65..99fba03ff8 100644
--- a/Rakefile
+++ b/Rakefile
@@ -72,11 +72,15 @@ rescue LoadError
puts "yard is not available. (sudo) gem install yard to generate yard documentation."
end
-require "github_changelog_generator/task"
+begin
+ require "github_changelog_generator/task"
-GitHubChangelogGenerator::RakeTask.new :changelog do |config|
- config.future_release = Chef::VERSION
- config.enhancement_labels = "enhancement,Enhancement,New Feature,Feature".split(",")
- config.bug_labels = "bug,Bug,Improvement,Upstream Bug".split(",")
- config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog,Exclude From Changelog,Question,Discussion".split(",")
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
+ config.future_release = Chef::VERSION
+ config.enhancement_labels = "enhancement,Enhancement,New Feature,Feature".split(",")
+ config.bug_labels = "bug,Bug,Improvement,Upstream Bug".split(",")
+ config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog,Exclude From Changelog,Question,Discussion".split(",")
+ end
+rescue LoadError
+ puts "github_changelog_generator is not available. gem install github_changelog_generator to generate changelogs"
end