in chef/cookbooks/cpe_nudge/resources/cpe_nudge_swift_install.rb [70:100]
def custom_resources
directory base_path do
owner root_owner
group node['root_group']
mode '0755'
end
[
'logoDark.png',
'logoLight.png',
'screenShotDark.png',
'screenShotLight.png',
].each do |item|
cookbook_file ::File.join(base_path, item) do
owner root_owner
group node['root_group']
mode '0755'
source "nudge-swift/custom/#{item}"
notifies :disable, "launchd[#{launchagent_label}]", :immediately if ::File.exists?(launchagent_path)
end
end
launchd launchagent_label do
action :nothing
type 'agent'
end
end