Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 3d55bb7

Browse files
committed
Merge pull request #88 from patcon/feature/fix-rubocop
Fix minor rubocop style errors
2 parents 081c882 + dc639ed commit 3d55bb7

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Guardfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# A sample Guardfile
22
# More info at https://github.com/guard/guard#readme
33

4-
# rubocop:disable RegexpLiteral
54
guard 'kitchen' do
65
watch(%r{test/.+})
76
watch(%r{^recipes/(.+)\.rb$})
@@ -11,4 +10,3 @@ guard 'kitchen' do
1110
watch(%r{^providers/(.+)\.rb})
1211
watch(%r{^resources/(.+)\.rb})
1312
end
14-
# rubocop:enable RegexpLiteral

providers/hook.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def whyrun_supported?
1414
}
1515

1616
unless @current_resource.enabled
17-
converge_by("Enable #{ @new_resource }") do
17+
converge_by("Enable #{@new_resource}") do
1818
enable(server, user, hook_opts)
1919
end
2020
new_resource.updated_by_last_action(true)
@@ -32,7 +32,7 @@ def whyrun_supported?
3232
settings = @new_resource.settings
3333

3434
unless @current_resource.configured && settings.diff(@current_resource.settings).empty?
35-
converge_by("Configure #{ @new_resource }") do
35+
converge_by("Configure #{@new_resource}") do
3636
configure(server, user, hook_opts, settings)
3737
end
3838
new_resource.updated_by_last_action(true)
@@ -49,7 +49,7 @@ def whyrun_supported?
4949
}
5050

5151
if @current_resource.enabled
52-
converge_by("Disable #{ @new_resource }") do
52+
converge_by("Disable #{@new_resource}") do
5353
disable(server, user, hook_opts)
5454
end
5555
new_resource.updated_by_last_action(true)

providers/repo.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def whyrun_supported?
1313
}
1414

1515
unless @current_resource.exists
16-
converge_by("Creating #{ @new_resource }") do
16+
converge_by("Creating #{@new_resource}") do
1717
create(server, user, repo_opts)
1818
end
1919
new_resource.updated_by_last_action(true)
@@ -29,7 +29,7 @@ def whyrun_supported?
2929
}
3030

3131
if @current_resource.exists
32-
converge_by("Deleting #{ @new_resource }") do
32+
converge_by("Deleting #{@new_resource}") do
3333
delete(server, user, repo_opts)
3434
end
3535
new_resource.updated_by_last_action(true)

0 commit comments

Comments
 (0)