Parent

Class/Module Index [+]

Quicksearch

Fog::SSH::Mock

Public Class Methods

data() click to toggle source
# File lib/fog/core/ssh.rb, line 16
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 26
def initialize(address, username, options)
  @address  = address
  @username = username
  @options  = options
end
reset() click to toggle source
# File lib/fog/core/ssh.rb, line 22
def self.reset
  @data= nil
end

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.