Module: Fog::SCP

Defined in:
lib/rackspace-fog/core/scp.rb

Defined Under Namespace

Classes: Mock, Real

Class Method Summary collapse

Class Method Details

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



4
5
6
7
8
9
10
# File 'lib/rackspace-fog/core/scp.rb', line 4

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