summaryrefslogtreecommitdiff
path: root/lib/chef/provider/route.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-11-15 15:08:04 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-12-06 13:08:26 -0800
commitd874a5a2731e5d7c21111cef7567473f2ed1c47c (patch)
tree14886f2dde6c31da544833124212bc42e17be394 /lib/chef/provider/route.rb
parent2e92c709459dffef54f9d671e10ec9a949a94962 (diff)
downloadchef-d874a5a2731e5d7c21111cef7567473f2ed1c47c.tar.gz
fix Style/SpaceInsideStringInterpolation
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/route.rb')
-rw-r--r--lib/chef/provider/route.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/route.rb b/lib/chef/provider/route.rb
index 64c89aac6d..7c6f91cdca 100644
--- a/lib/chef/provider/route.rb
+++ b/lib/chef/provider/route.rb
@@ -134,7 +134,7 @@ class Chef::Provider::Route < Chef::Provider
Chef::Log.debug("#{@new_resource} route already active - nothing to do")
else
command = generate_command(:add)
- converge_by ("run #{ command } to add route") do
+ converge_by ("run #{command} to add route") do
run_command( :command => command )
Chef::Log.info("#{@new_resource} added")
end
@@ -147,7 +147,7 @@ class Chef::Provider::Route < Chef::Provider
def action_delete
if is_running
command = generate_command(:delete)
- converge_by ("run #{ command } to delete route ") do
+ converge_by ("run #{command} to delete route ") do
run_command( :command => command )
Chef::Log.info("#{@new_resource} removed")
end
@@ -186,7 +186,7 @@ class Chef::Provider::Route < Chef::Provider
end
conf.each do |k, v|
network_file_name = "/etc/sysconfig/network-scripts/route-#{k}"
- converge_by ("write route route.#{k}\n#{conf[k]} to #{ network_file_name }") do
+ converge_by ("write route route.#{k}\n#{conf[k]} to #{network_file_name}") do
network_file = ::File.new(network_file_name, "w")
network_file.puts(conf[k])
Chef::Log.debug("#{@new_resource} writing route.#{k}\n#{conf[k]}")