summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-03-03 16:59:17 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2017-03-03 17:00:29 -0800
commitd5c5be583d69f55c788d3b6489f72d5ce8732a5e (patch)
treed33791bfe1082238047fc511713229bd74fdd532 /Rakefile
parent6055c8d41c3834d5a3fe606bab63ac1497efe8b9 (diff)
downloadohai-d5c5be583d69f55c788d3b6489f72d5ce8732a5e.tar.gz
rescue github-changelog-generator in Rakefile
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/Rakefile b/Rakefile
index 6d3b626a..add42e46 100644
--- a/Rakefile
+++ b/Rakefile
@@ -23,13 +23,16 @@ RuboCop::RakeTask.new(:style) do |task|
task.options += ["--display-cop-names", "--no-color"]
end
-require "github_changelog_generator/task"
+begin
+ require "github_changelog_generator/task"
-GitHubChangelogGenerator::RakeTask.new :changelog do |config|
- config.future_release = Ohai::VERSION
- config.max_issues = 0
- config.add_issues_wo_labels = false
- 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 = Ohai::VERSION
+ config.max_issues = 0
+ config.add_issues_wo_labels = false
+ 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
end