Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

FC005: Foodcritic complains about repetetive resource declarations, however resources differ by more than one attribute #740

Open
sblaufuss opened this issue Mar 6, 2018 · 1 comment

Comments

@sblaufuss
Copy link

sblaufuss commented Mar 6, 2018

This recipe started throwing FC005 errors when we changed the file location from using a local variable, catalina_base, to the chef attribute accessor node['bke_tomcat']['catalina_base'].

`remote_file "#{node['bke_tomcat']['catalina_base']}/cas/lib/memcached-session-manager-1.9.1.jar" do
source 'http://repo1.maven.org/maven2/de/javakaffee/msm/memcached-session-manager/1.9.1/memcached-session-manager-1.9.1.jar'
owner 'root'
group 'root'
mode '0644'
action :create
end

remote_file "#{node['bke_tomcat']['catalina_base']}/cas/lib/memcached-session-manager-tc8-1.9.1.jar" do
source 'http://repo1.maven.org/maven2/de/javakaffee/msm/memcached-session-manager-tc8/1.9.1/memcached-session-manager-tc8-1.9.1.jar'
owner 'root'
group 'root'
mode '0644'
action :create
end

remote_file "#{node['bke_tomcat']['catalina_base']}/cas/lib/spymemcached-2.11.1.jar" do
source 'http://central.maven.org/maven2/net/spy/spymemcached/2.11.1/spymemcached-2.11.1.jar'
owner 'root'
group 'root'
mode '0644'
action :create
end`

@Gary-Armstrong
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants