# File lib/puppet/transportable.rb, line 49 49: def to_component 50: trans = TransObject.new(ref, :component) 51: @params.each { |param,value| 52: next unless Puppet::Type::Component.validattr?(param) 53: Puppet.debug "Defining %s on %s" % [param, ref] 54: trans[param] = value 55: } 56: trans.catalog = self.catalog 57: Puppet::Type::Component.create(trans) 58: end