Method: Chef::Resource#default_guard_interpreter

Defined in:
lib/chef/resource.rb

#default_guard_interpreterClass, ... (readonly)

The guard interpreter that will be used to process only_if and not_if statements by default. If left unset, or set to :default, the guard interpreter used will be Chef::GuardInterpreter::DefaultGuardInterpreter.

Must be a resource class like Chef::Resource::Execute, or a corresponding to the name of a resource. The resource must descend from Chef::Resource::Execute.

TODO this needs to be coerced on input so that retrieval is consistent.

Returns:

  • (Class, Symbol, String)

    the default Guard interpreter resource.



881
882
883
# File 'lib/chef/resource.rb', line 881

def default_guard_interpreter
  @default_guard_interpreter
end