Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

replacing rake

#89

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).

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

State: resolved
Milestone: none
Assigned to: bahuvrihi bahuvrihi

Activity

  1. bahuvrihi
    bahuvrihi

    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
    

    August 26th, 2008 @ 07:57 AM

  2. bahuvrihi
    bahuvrihi
    • State changed from new to resolved
    • Assigned user set to bahuvrihi

    September 27th, 2008 @ 08:53 PM

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.