Method: Chef::Exceptions.const_missing

Defined in:
lib/chef/exceptions.rb

.const_missing(const_name) ⇒ Object



35
36
37
38
39
40
41
42
43
44
# File 'lib/chef/exceptions.rb', line 35

def self.const_missing(const_name)
  if const_name == :ShellCommandFailed
    Chef::Log.warn("Chef::Exceptions::ShellCommandFailed is deprecated, use Mixlib::ShellOut::ShellCommandFailed")
    called_from = caller[0..3].inject("Called from:\n") { |msg, trace_line| msg << "  #{trace_line}\n" }
    Chef::Log.warn(called_from)
    Mixlib::ShellOut::ShellCommandFailed
  else
    super
  end
end