# File lib/puppet/transportable.rb, line 158
158:     def to_manifest
159:       unless self.top
160:         raise Puppet::DevError, "No keyword; cannot convert to manifest" unless @keyword
161:       end
162: 
163:       str = "#{@keyword} #{@name} {\n%s\n}"
164:       str % @children.collect { |child|
165:         child.to_manifest
166:       }.collect { |str|
167:         if self.top
168:           str
169:         else
170:           str.gsub(/^/, "    ") # indent everything once
171:         end
172:       }.join("\n\n") # and throw in a blank line
173:     end