You could do something like this:

  task :ensure_connected do
    connect!
  end

  before "deploy:update_code", "ensure_connected"

The "connect!" method forces a connection to be opened all servers that
match the given task. You can give arguments, too, so you can specify
explicit roles, hosts, etc:

  connect! :roles => %w(app db)
  connect! :hosts => %w(this.host that.host)

etc.

- Jamis

On 3/11/09 2:10 PM, gran.roble wrote:
> Greetings to all
> 
> I'm using Capistrano to update code php and rails on 3 servers located
> in different geographic areas of Oaxaca in Mexico.
> The conditions of each region does not ensure that the VPN installed
> between each computer and office work.
> 
> There is a way of ensuring that there Capistrano connectivity with the
> servers before you deploy one? If for some reason there is no
> connection abort deploy. The goal is always to ensure that deploy runs
> on three servers, or none.
> 
> > 


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