Module: Fog::SCP

Defined in:
lib/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/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

.reset_data(keys = Mock.data.keys) ⇒ Object



12
13
14
# File 'lib/fog/core/scp.rb', line 12

def self.reset_data(keys=Mock.data.keys)
  Mock.reset_data(keys)
end