class Fog::SSH::Mock

Public Class Methods

data() click to toggle source
# File lib/fog/core/ssh.rb, line 14
def self.data
  @data ||= Hash.new do |hash, key|
    hash[key] = []
  end
end
new(address, username, options) click to toggle source
# File lib/fog/core/ssh.rb, line 24
def initialize(address, username, options)
  @address  = address
  @username = username
  @options  = options
end
reset() click to toggle source
# File lib/fog/core/ssh.rb, line 20
def self.reset
  @data = nil
end

Public Instance Methods

run(commands, &_blk) click to toggle source
# File lib/fog/core/ssh.rb, line 30
def run(commands, &_blk)
  self.class.data[@address] << { :commands => commands, :username => @username, :options => @options }
end