Module Capistrano::Configuration::Connections
In: lib/capistrano/configuration/connections.rb

Methods

Public Instance methods

Used to force connections to be made to the current task‘s servers. Connections are normally made lazily in Capistrano—you can use this to force them open before performing some operation that might be time-sensitive.

Returns the object responsible for establishing new SSH connections. The factory will respond to connect_to, which can be used to establish connections to servers defined via ServerDefinition objects.

Ensures that there are active sessions for each server in the list.

Determines the set of servers within the current task‘s scope and establishes connections to them, and then yields that list of servers.

Indicate that the given server could not be connected to.

Query whether previous connection attempts to the given server have failed.

A hash of the SSH sessions that are currently open and available. Because sessions are constructed lazily, this will only contain connections to those servers that have been the targets of one or more executed tasks. Stored on a per-thread basis to improve thread-safety.

Destroys sessions for each server in the list.

[Validate]