Method: Chef::Exceptions::NoSuchResourceType#initialize

Defined in:
lib/chef/exceptions.rb

#initialize(short_name, node) ⇒ NoSuchResourceType

Returns a new instance of NoSuchResourceType.



137
138
139
# File 'lib/chef/exceptions.rb', line 137

def initialize(short_name, node)
  super "Cannot find a resource for #{short_name} on #{node[:platform]} version #{node[:platform_version]} with target_mode? #{Chef::Config.target_mode?}"
end