Class: Chef::GuardInterpreter::DefaultGuardInterpreter

Inherits:
Object
  • Object
show all
Includes:
Mixin::ShellOut
Defined in:
lib/chef/guard_interpreter/default_guard_interpreter.rb

Direct Known Subclasses

ResourceGuardInterpreter

Constant Summary

Constants included from Mixin::ShellOut

Mixin::ShellOut::DEPRECATED_OPTIONS

Instance Method Summary collapse

Methods included from Mixin::ShellOut

#run_command_compatible_options, #shell_out, #shell_out!, #shell_out_with_systems_locale, #shell_out_with_systems_locale!

Instance Method Details

#evaluateObject



35
36
37
38
39
40
# File 'lib/chef/guard_interpreter/default_guard_interpreter.rb', line 35

def evaluate
  shell_out(@command, @command_opts).status.success?
rescue Chef::Exceptions::CommandTimeout
  Chef::Log.warn "Command '#{@command}' timed out"
  false
end