# File lib/fog/core/ssh.rb, line 14 def self.data @data ||= Hash.new do |hash, key| hash[key] = [] end end
# File lib/fog/core/ssh.rb, line 24 def initialize(address, username, options) @address = address @username = username @options = options end
# File lib/fog/core/ssh.rb, line 20 def self.reset @data = nil end
# File lib/fog/core/ssh.rb, line 30 def run(commands, &_blk) self.class.data[@address] << { :commands => commands, :username => @username, :options => @options } end