class Fog::SSH::Mock
Public Class Methods
Source
# File lib/fog/core/ssh.rb, line 14 def self.data @data ||= Hash.new do |hash, key| hash[key] = [] end end
Source
# File lib/fog/core/ssh.rb, line 24 def initialize(address, username, options) @address = address @username = username @options = options end
Public Instance Methods
Source
# File lib/fog/core/ssh.rb, line 30 def run(commands, &_blk) self.class.data[@address] << { commands: commands, username: @username, options: @options } end