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.

ArgumentError on Rake task arguments

#203

Rake now supports task arguments of the form:

task 'my_task', :arg1, :arg2 do |task, args|
  # do stuff
end

these tasks cause an ArgumentError in sake on import/export...

longer example

task 'ftp:sync_up', :remote_dir, :needs => [ 'ftp:init' ] do |t, args|
  # etc.
end

Reported by Adam S · March 27th, 2008 @ 03:56 AM

State: new
Milestone: none
Assigned to: Chris Wanstrath Chris Wanstrath

Activity

  1. Adam S
    Adam S

    Sorry calling/testing args done by:

    rake/sake my_task[arg1,arg2]

    March 27th, 2008 @ 04:11 AM

  2. Adam S
  3. Adam S
    Adam S

    Umm... scratch that... patch needs work ;)

    April 2nd, 2008 @ 04:08 AM

  4. Adam S
    Adam S

    One more time for the dummies... I have updated sake on my github fork... Sent Chris a pull request...

    Now to see if it is 'worthy' ;)

    April 2nd, 2008 @ 06:07 AM

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.