Class: Vagrant::Smartos::Zones::Util::GlobalZone::Connection::SSHLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant/smartos/zones/util/global_zone/connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSSHLogger

Returns a new instance of SSHLogger.



68
69
70
71
# File 'lib/vagrant/smartos/zones/util/global_zone/connection.rb', line 68

def initialize
  @io = StringIO.new
  @logger = Logger.new(@io)
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



66
67
68
# File 'lib/vagrant/smartos/zones/util/global_zone/connection.rb', line 66

def logger
  @logger
end

Instance Method Details

#to_sObject



73
74
75
# File 'lib/vagrant/smartos/zones/util/global_zone/connection.rb', line 73

def to_s
  @io.string
end