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.
10 11 12 |
# File 'lib/sshkit/backends/netssh.rb', line 10 def initialize(output) @output = output end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
9 10 11 |
# File 'lib/sshkit/backends/netssh.rb', line 9 def output @output end |
Instance Method Details
#debug(args) ⇒ Object
13 14 15 |
# File 'lib/sshkit/backends/netssh.rb', line 13 def debug(args) output << LogMessage.new(Logger::TRACE, args) end |
#error(args) ⇒ Object
16 17 18 |
# File 'lib/sshkit/backends/netssh.rb', line 16 def error(args) output << LogMessage.new(Logger::ERROR, args) end |
#lwarn(args) ⇒ Object
19 20 21 |
# File 'lib/sshkit/backends/netssh.rb', line 19 def lwarn(args) output << LogMessage.new(Logger::WARN, args) end |