Class: Vagrant::Smartos::Zones::Util::GlobalZone::Connection::SSHLogger
- Inherits:
-
Object
- Object
- Vagrant::Smartos::Zones::Util::GlobalZone::Connection::SSHLogger
- Defined in:
- lib/vagrant/smartos/zones/util/global_zone/connection.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ SSHLogger
constructor
A new instance of SSHLogger.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ SSHLogger
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
#logger ⇒ Object (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_s ⇒ Object
73 74 75 |
# File 'lib/vagrant/smartos/zones/util/global_zone/connection.rb', line 73 def to_s @io.string end |