Class: Net::SSH::LogLevelShim
- Inherits:
-
Object
- Object
- Net::SSH::LogLevelShim
- Defined in:
- lib/sshkit/backends/netssh.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
- #debug(args) ⇒ Object
- #error(args) ⇒ Object
-
#initialize(output) ⇒ LogLevelShim
constructor
A new instance of LogLevelShim.
- #lwarn(args) ⇒ Object
Constructor Details
#initialize(output) ⇒ LogLevelShim
Returns a new instance of LogLevelShim.
22 23 24 |
# File 'lib/sshkit/backends/netssh.rb', line 22 def initialize(output) @output = output end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
21 22 23 |
# File 'lib/sshkit/backends/netssh.rb', line 21 def output @output end |
Instance Method Details
#debug(args) ⇒ Object
25 26 27 |
# File 'lib/sshkit/backends/netssh.rb', line 25 def debug(args) output << LogMessage.new(Logger::TRACE, args) end |
#error(args) ⇒ Object
28 29 30 |
# File 'lib/sshkit/backends/netssh.rb', line 28 def error(args) output << LogMessage.new(Logger::ERROR, args) end |
#lwarn(args) ⇒ Object
31 32 33 |
# File 'lib/sshkit/backends/netssh.rb', line 31 def lwarn(args) output << LogMessage.new(Logger::WARN, args) end |