# File lib/puppet/module/tool/applications/generator.rb, line 23 def run if destination.directory? abort "#{destination} already exists." end header "Generating module at #{Dir.pwd}/#{@metadata.dashed_name}" skeleton.path.find do |path| if path == skeleton destination.mkpath else node = Node.on(path, self) if node node.install! say node.target else say "Could not generate from #{path}" end end end end