class Chef::GuardInterpreter

Public Class Methods

for_resource(resource, command, command_opts) click to toggle source
# File lib/chef/guard_interpreter.rb, line 24
def self.for_resource(resource, command, command_opts)
  if resource.guard_interpreter == :default
    Chef::GuardInterpreter::DefaultGuardInterpreter.new(command, command_opts)
  else
    Chef::GuardInterpreter::ResourceGuardInterpreter.new(resource, command, command_opts)
  end
end