in itchef/cookbooks/cpe_launchd/resources/cpe_launchd.rb [57:71]
def append_to_cleanup(label, plist_or_path)
node.default['cpe_launchd_is_deprecated_please_use_fb_launchd']['__cleanup'] = {} unless
node['cpe_launchd_is_deprecated_please_use_fb_launchd']['__cleanup']
plist_type = nil
if plist_or_path.is_a?(Hash) &&
plist_or_path.include?('type') &&
plist_or_path['type'] == 'agent'
plist_type = 'agent'
end
if plist_or_path.is_a?(String)
plist_type = 'agent' if plist_or_path.downcase.include?('launchagent')
end
node.default['cpe_launchd_is_deprecated_please_use_fb_launchd']['__cleanup'][label] = plist_type
end