Module: Fog::SSH

Defined in:
lib/fog/core/ssh.rb

Defined Under Namespace

Classes: Mock, Real, Result

Class Method Summary collapse

Class Method Details

.new(address, username, options = {}) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/fog/core/ssh.rb', line 5

def self.new(address, username, options = {})
  if Fog.mocking?
    Fog::SSH::Mock.new(address, username, options)
  else
    Fog::SSH::Real.new(address, username, options)
  end
end