Class: Net::SSH::LogLevelShim

Inherits:
Object
  • Object
show all
Defined in:
lib/sshkit/backends/netssh.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#outputObject (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