[Nitro] General inquiry about Reap

TRANS transfire at gmail.com
Tue Apr 25 06:20:52 EDT 2006


A quick follow-up. I could easily make task building something like this:

 task :name do

    when { projectfile? }

    help <<-end
      Help information.
    end

    run do |x|
      # do the task
    end

  end

That would probably be the most proper course. But if Rake
compatibility (or nearly so at least) is though vitially important
than could do something like this:

  desc "This is a description"

  task :name do |x|
    # do the task
  end

  cont do

    help <<-end
      This is help text.
    end

    when do
      projectfile?
    end

  end

Not sure what to call "cont".

T.




More information about the Nitro-general mailing list