Method: Cloudler.test_connection

Defined in:
lib/cloudler.rb

.test_connectionObject



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/cloudler.rb', line 12

def self.test_connection
	@hosts.each do |host|
		begin
			Net::SSH.start(host, @username, :password => @password) do |ssh|
				puts "Connected to #{host} successfully."
			end
		rescue
			puts "Error connecting to #{host}."
		end
	end
end