Method: Chef::Resource#not_if
- Defined in:
- lib/chef/resource.rb
#not_if(arg = nil, args = {}, &blk) ⇒ Object
366 367 368 369 370 371 372 373 374 375 |
# File 'lib/chef/resource.rb', line 366 def not_if(arg=nil, args = {}, &blk) if Kernel.block_given? @not_if = blk @not_if_args = args else @not_if = arg if arg @not_if_args = args if arg end @not_if end |