Skip to content

Commit ca448f8

Browse files
committed
fix(rubocop): add fixes using rubocop --safe-auto-correct
1 parent 954d8c6 commit ca448f8

File tree

6 files changed

+21
-16
lines changed

6 files changed

+21
-16
lines changed

Gemfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
source "https://rubygems.org"
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
24

35
gem 'kitchen-docker', '>= 2.9'
4-
gem 'kitchen-salt', '>= 0.6.0'
56
gem 'kitchen-inspec', '>= 1.1'
6-
7+
gem 'kitchen-salt', '>= 0.6.0'

bin/kitchen

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
# this file is here to facilitate running it.
99
#
1010

11-
require "pathname"
12-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13-
Pathname.new(__FILE__).realpath)
11+
require 'pathname'
12+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
13+
Pathname.new(__FILE__).realpath)
1414

15-
bundle_binstub = File.expand_path("../bundle", __FILE__)
15+
bundle_binstub = File.expand_path('bundle', __dir__)
1616

1717
if File.file?(bundle_binstub)
1818
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
@@ -23,7 +23,7 @@ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this
2323
end
2424
end
2525

26-
require "rubygems"
27-
require "bundler/setup"
26+
require 'rubygems'
27+
require 'bundler/setup'
2828

29-
load Gem.bin_path("test-kitchen", "kitchen")
29+
load Gem.bin_path('test-kitchen', 'kitchen')

test/integration/default/controls/config_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
control 'template configuration' do
24
title 'should match desired lines'
35

test/integration/default/controls/packages_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
# frozen_string_literal: true
2+
13
# Overide by OS
24
package_name = 'bash'
3-
if os[:name] == 'centos' and os[:release].start_with?('6')
4-
package_name = 'cronie'
5-
end
5+
package_name = 'cronie' if (os[:name] == 'centos') && os[:release].start_with?('6')
66

77
control 'template package' do
88
title 'should be installed'

test/integration/default/controls/services_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
# frozen_string_literal: true
2+
13
# Overide by OS
24
service_name = 'systemd-udevd'
3-
if os[:name] == 'centos' and os[:release].start_with?('6')
4-
service_name = 'crond'
5-
end
5+
service_name = 'crond' if (os[:name] == 'centos') && os[:release].start_with?('6')
66

77
control 'template service' do
88
impact 0.5

test/integration/default/controls/subcomponent_config_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
control 'template subcomponent configuration' do
24
title 'should match desired lines'
35

0 commit comments

Comments
 (0)