Yup. And you can nix the 'if respond_to?(:namespace)' part if you're only using Cap2. And if you don't need the default deployment tasks, then you don't even need "load 'deploy'" (if, for instance, you are only using custom tasks).

- Jamis

On Apr 8, 2008, at 5:47 PM, Trevor Turk wrote:

On Apr 8, 5:41 pm, Jamis Buck <[EMAIL PROTECTED]> wrote:
The lib/tasks/capistrano.rake file was deprecated long ago, and is not
supported at all in modern cap versions (unless you're writing your
own capistrano.rake file, which I do not recommend).

Even config/deploy.rb is not necessary--you can theoretically put
everything that is in deploy.rb into Capfile. Rails apps use config/
deploy.rb in order to keep configuration files under config, but
Capistrano can run just fine with only a Capfile.

Wow! That definitely worked. So, all you need is the Capfile, leading
with:
load 'deploy' if respond_to?(:namespace)
...and then the rest of the stuff you normally would put into your
deploy.rb.

Awesome.

Thanks,
Trevor
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to