File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
cookbooks/fb_launchd/resources Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 2222default_action :run
2323
2424# Attributes that circumvent or defeat the purpose of using launchd as a node
25- # API. Blacklist them so that this blows up when they're used. If you really
25+ # API. Blocklist them so that this blows up when they're used. If you really
2626# want to use these, just make a launchd resource instead.
27- BLACKLISTED_ATTRIBUTES = %w{
27+ BLOCKLISTED_ATTRIBUTES = %w{
2828 label
2929 path
3030} . freeze
5656
5757 # Set up current jobs.
5858 node [ 'fb_launchd' ] [ 'jobs' ] . each do |name , attrs |
59- if attrs . keys . any? { |k | BLACKLISTED_ATTRIBUTES . include? ( k ) }
60- fail "fb_launchd[#{ name } ]: uses a blacklisted attribute (one of " +
61- "#{ BLACKLISTED_ATTRIBUTES } ). If you want to use them, create a " +
59+ if attrs . keys . any? { |k | BLOCKLISTED_ATTRIBUTES . include? ( k ) }
60+ fail "fb_launchd[#{ name } ]: uses a blocklisted attribute (one of " +
61+ "#{ BLOCKLISTED_ATTRIBUTES } ). If you want to use them, create a " +
6262 "'launchd' resource instead"
6363 end
6464
You can’t perform that action at this time.
0 commit comments