#89 ✓resolved
bahuvrihi

replacing rake

Reported by bahuvrihi | August 26th, 2008 @ 07:25 AM

There's still plenty of room left to replace rake. Add to the declaration syntax the same kind of rakish sugar:


  Tap.task({name => [deps..]}, {configs}) do |task, inputs|
    ...
  end

Now you've got dependency declaration. And then in framework class you add a:

  • instance
  • dependency_instance
  • *generic*

What have you... you add a flag to the generic to signify executed or not. On enque, the generics are enqued/prioritized if necessary (ie unexecuted).

Comments and changes to this ticket

  • bahuvrihi

    bahuvrihi August 26th, 2008 @ 07:57 AM

    Dependencies should be declarable in a task:

    
      class Sample < Tap::Task
        depends_on Class
        depends_on 'class'
      end
    

    No modification of the generic class here, though... there should be a different syntax for changing the generic task from the command line. Dependencies should be class based, and the instance should be able to access the dependency/results of the dependency.

    From the command line:

    
    --* indicates the generic instance
    
  • bahuvrihi

    bahuvrihi September 27th, 2008 @ 08:53 PM

    • State changed from “new” to “resolved”
    • Assigned user set to “bahuvrihi”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A framework for making configurable, file-based tasks and workflows.

People watching this ticket

Tags

Pages