Skip to content

Commit b4bbd85

Browse files
authored
Merge pull request #49 from dev-sec/fix_rakefile
fix rubocop error for Rakefile
2 parents f223cf1 + 33b675f commit b4bbd85

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Rakefile

+14-14
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ task :changelog do
3131
# Automatically generate a changelog for this project. Only loaded if
3232
# the necessary gem is installed. By default its picking up the version from
3333
# inspec.yml. You can override that behavior with `rake changelog to=1.2.0`
34-
begin
35-
require 'yaml'
36-
metadata = YAML.load_file('inspec.yml')
37-
v = ENV['to'] || metadata['version']
38-
puts " * Generating changelog for version #{v}"
39-
require 'github_changelog_generator/task'
40-
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
41-
config.future_release = v
42-
config.user = 'dev-sec'
43-
config.project = 'nginx-baseline'
44-
end
45-
Rake::Task[:changelog].execute
46-
rescue LoadError
47-
puts '>>>>> GitHub Changelog Generator not loaded, omitting tasks'
34+
35+
require 'yaml'
36+
metadata = YAML.load_file('inspec.yml')
37+
v = ENV['to'] || metadata['version']
38+
puts " * Generating changelog for version #{v}"
39+
require 'github_changelog_generator/task'
40+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
41+
config.future_release = v
42+
config.user = 'dev-sec'
43+
config.project = 'nginx-baseline'
4844
end
45+
Rake::Task[:changelog].execute
46+
rescue LoadError
47+
puts '>>>>> GitHub Changelog Generator not loaded, omitting tasks'
48+
4949
end

0 commit comments

Comments
 (0)