"after :update_code, :foo" inside "namespace :deploy"

342 views
Skip to first unread message

Tobi Reif

unread,
Nov 7, 2007, 5:37:45 AM11/7/07
to capis...@googlegroups.com
Hi

This doesn't seem to work:

namespace :deploy do

after :update_code, :fix_script_perms

task :fix_script_perms do
# ...
end

end

But this worked:

after "deploy:update_code", :fix_script_perms

task :fix_script_perms do
# ...
end

This works as well:

after "deploy:update_code", "deploy:fix_script_perms"

namespace :deploy do

task :fix_script_perms do
# ...
end

end

I'd like to leave the fix_script_perms (etc) tasks inside the deploy
namespace, and I'd like to omit the namespace prefix in the
after/before lines. Is there a way to do this? Should/could the
following work?

namespace :deploy do

after :update_code, :fix_script_perms

task :fix_script_perms do
# ...
end

end

Tobi

Mislav Marohnić

unread,
Nov 7, 2007, 9:16:41 AM11/7/07
to capis...@googlegroups.com
On Nov 7, 2007 11:37 AM, Tobi Reif <tobia...@pinkjuice.com> wrote:

This doesn't seem to work:

 namespace :deploy do
   after :update_code, :fix_script_perms

I've been bitten by this and forgot to report.

I think Tobi and mine expectations are also that of most users. This should be fixed

Jamis Buck

unread,
Nov 7, 2007, 9:39:23 AM11/7/07
to capis...@googlegroups.com
Yeah, that doesn't work. But if you work up a patch, I'd consider it.

- Jamis

> --~--~---------~--~----~------------~-------~--~----~
> To unsubscribe from this group, send email to capistrano-
> unsub...@googlegroups.com
> For more options, visit this group at http://groups.google.com/
> group/capistrano
> -~----------~----~----~----~------~----~------~--~---
>

Reply all
Reply to author
Forward
0 new messages