lib/reap/task/doap.rb in reap-4.3.4 vs lib/reap/task/doap.rb in reap-4.4.0

- old
+ new

@@ -1,8 +1,16 @@ module Reap + # = Doap task + # + # This task simply generates an XML DOAP project file. + # This file can be useful for RSS and Atom feeds to + # project tracking sites. The task utilizes as much + # information as it can from the ProjectInfo file. + # + class Doap < Task task_desc %{Generate DOAP project file.} task_help %{ @@ -14,21 +22,14 @@ more suitable to RESTful interapplication communications, like RSS/Atom feeds. } - task_attr :prj + alias_method :prj, :task - # Setup doap data - - def init - - end - - # Generate doap file - def run + puts "Generating doap.xml file..." x = '' x << %{ |<Project xmlns="http://usefulinc.com/ns/doap#"\n @@ -58,10 +59,12 @@ | </maintainer> | </Project> }.margin File.open( "doap.xml", 'w' ) { |f| f << x } + end end end +