Class: Capistrano::SSH

Inherits:
Object
  • Object
show all
Defined in:
lib/capitate/cap_ext/connections.rb

Overview

Debug connections

Class Method Summary collapse

Class Method Details

.connect_with_logging(server, options = {}, &block) ⇒ Object



92
93
94
95
96
97
98
99
100
# File 'lib/capitate/cap_ext/connections.rb', line 92

def connect_with_logging(server, options={}, &block)      
  @connect_mutex ||= Mutex.new
  
  @connect_mutex.synchronize do
    puts "--- Connecting to #{server} with user: #{server.user || options[:user]}"      
  end

  connect_without_logging(server, options, &block)      
end