One way is to just use a relative path to the filters.rb file:

  load "path/to/filters.rb"

You can assume that the current working directory, when cap is running,
is the location of the Capfile.

- Jamis

Peter Booth wrote:
> I have some tasks that share some identical instructions to setup filters. 
> I can extract these into a separate file and reference with   
> 
> *load "filters.rb"*
> 
> but this depends on me correctly defining *load_paths*
> 
> What is the idiomatic way to do this?
> 
> Peter
> 
> On May 22, 2008, at 11:31 AM, cera wrote:
> 
>>
>> Hi everyone,
>>
>> There are commands I want to execute locally on the repository before
>> it is shipped to the app server.  I'm looking at the code in
>> Capistrano::Deploy::Strategy::Copy::deploy!() method and it doesn't
>> seem to support that.  Is there a more graceful way of doing it aside
>> from creating my own tasks to do exactly this?  Thank you, -Chris
>>
>>
> 
> 
> > 


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

Reply via email to