What is the Capistrano equivalent, in deploy.rb, for the following shell 
commands.

$ svn export ${SVN_REPO_A} repoA
$ svn export ${SVN_REPO_B} repoB
$ cp -r repoB/* repoA/

The deployment scenario is that ${SVN_REPO_A} is a public, open-source 
repository of a rails application.  When it is deployed on secure 
infrastructure, all the private config details are merged from the private 
{$SVN_REPO_B}.  Access to ${SVN_REPO_B} requires security clearance.

AFAIK, there is only one :repository in a deploy.rb file and it contains a 
reference to only one repository.  That is, the value for :repository is a 
string, it cannot be a list.  There appear to be no options to specify 
multiple :repository (and associated authentication parameters).

Maybe a solution might be to use an after block with an invoke task, 
something like this:

set :default_environment, {
    # Command for invoke task below (assume svn+ssh authentication works)
    'COMMAND' => 'svn export ${SVN_REPO_B} repoB && cp -r repoB/* repoA/'
}
after ("deploy:update_code") do
   # Incorporate ${SVN_REPO_B} using COMMAND above
   invoke
end


Isn't there an easier way to specify this, within the deploy.rb file?

Thanks in advance,
Darren

-- 
* 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