# File lib/puppet/type/resources.rb, line 104 104: def resource_type 105: unless defined?(@resource_type) 106: unless type = Puppet::Type.type(self[:name]) 107: raise Puppet::DevError, "Could not find resource type" 108: end 109: @resource_type = type 110: end 111: @resource_type 112: end