Fix issues reported by new rubocop
[chef.git] / cookbooks / web / definitions / rails_port.rb
index f3d89d0577a30cf8152c9732cdb515e3267c9591..79a9cc83680c01eb111d7199a2de8882734e20d2 100644 (file)
@@ -145,7 +145,7 @@ define :rails_port, :action => [:create, :enable] do
     end
 
     if params[:memcache_servers]
-      line.gsub!(/^( *)#memcache_servers:.*$/, "\\1memcache_servers: [ \"#{params[:memcache_servers].join("\", \"")}\" ]")
+      line.gsub!(/^( *)#memcache_servers:.*$/, "\\1memcache_servers: [ \"#{params[:memcache_servers].join('", "')}\" ]")
     end
 
     if params[:potlatch2_key]