# File lib/puppet/type/resources.rb, line 117 117: def resource_type 118: unless defined? @resource_type 119: unless type = Puppet::Type.type(self[:name]) 120: raise Puppet::DevError, "Could not find resource type" 121: end 122: @resource_type = type 123: end 124: @resource_type 125: end