Switchtower is really cool once you get it going. Quick question, I do
a:
% rake deploy
% rake remote_exec ACTION=symlink_pictures
…but what’s the easiest way to combine the two in a single command?
Thanks
CM
Switchtower is really cool once you get it going. Quick question, I do
a:
% rake deploy
% rake remote_exec ACTION=symlink_pictures
…but what’s the easiest way to combine the two in a single command?
Thanks
CM
On 12/26/05, capnmidnight [email protected] wrote:
CM
Name the task after_symlink and it will be called automatically.
–
rick
http://techno-weenie.net
On Dec 26, 2005, at 11:11 PM, Rick O. wrote:
Thanks
CMName the task after_symlink and it will be called automatically.
You can also invoke multiple tasks using remote_exec:
rake remote_exec ACTION=deploy,symlink_pictures
But as Rick said, in this case, naming symlink_pictures
“after_symlink” (or creating after_symlink and calling
symlink_pictures from it) is probably the most efficient way to go.
Before ST invokes a task “foo”, it first looks for a task named
“before_foo” and invokes it (if it exists). After invoking “foo”, ST
looks for and invokes “after_foo”. This makes it easy to add “hooks”
to customize various tasks.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs