Skip to content

Commit cd29768

Browse files
authored
Merge pull request #53 from dev-sec/fix_rakefile
fix rubocop error for Rakefile
2 parents 8e19c23 + 7d17e1f commit cd29768

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

0 commit comments

Comments
 (0)