From 70afe7511028b63296ec04ea81f9fc396426926e Mon Sep 17 00:00:00 2001 From: Martin Schurz Date: Sat, 24 Apr 2021 15:47:02 +0200 Subject: [PATCH] fix rubocop error for Rakefile --- Rakefile | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/Rakefile b/Rakefile index 27c70e2..ec789b7 100755 --- a/Rakefile +++ b/Rakefile @@ -30,18 +30,19 @@ task :changelog do # Automatically generate a changelog for this project. Only loaded if # the necessary gem is installed. By default its picking up the version from # inspec.yml. You can override that behavior with `rake changelog to=1.2.0` - require 'yaml' - metadata = YAML.load_file('inspec.yml') - v = ENV['to'] || metadata['version'] - puts " * Generating changelog for version #{v}" - require 'github_changelog_generator/task' - GitHubChangelogGenerator::RakeTask.new :changelog do |config| - config.future_release = v - config.user = 'dev-sec' - config.project = 'openstack-baseline' - end - Rake::Task[:changelog].execute - rescue LoadError - puts '>>>>> GitHub Changelog Generator not loaded, omitting tasks' + + require 'yaml' + metadata = YAML.load_file('inspec.yml') + v = ENV['to'] || metadata['version'] + puts " * Generating changelog for version #{v}" + require 'github_changelog_generator/task' + GitHubChangelogGenerator::RakeTask.new :changelog do |config| + config.future_release = v + config.user = 'dev-sec' + config.project = 'openstack-baseline' end + Rake::Task[:changelog].execute +rescue LoadError + puts '>>>>> GitHub Changelog Generator not loaded, omitting tasks' + end