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