Hi,

I'm using Lee's railsless deploy to push out a php application. I'm
using the copy strategy, ie. checking out locally, and copying a tarball
to all remote hosts.

I want to be able to run some scripts after the code has been checked
out from svn but before it is bundled into the tarball.

>From what I can see, I need to be adding code to deploy! in
recipes/deploy/strategy/copy.rb at around line 95:

def deploy!
if copy_cache
  # svn update here
else
  # svn checkout here
end

File.open(File.join(destination, "REVISION"), "w") { |f| f.puts(revision) }

# <<<<----- New code needs to go here

logger.trace "compressing #{destination} to #{filename}"
Dir.chdir(tmpdir) { system(compress(File.basename(destination),
File.basename(filename)).join(" ")) }

upload(filename, remote_filename)
# etc...


I'd like to add some sort of code at the position marked that will call
a hook defined in my project deploy.rb if it exists.

Is that sort of thing possible? Can anyone help me out with some example
code?

R.

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to