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.



22
23
24
# File 'lib/sshkit/backends/netssh.rb', line 22

def initialize(output)
  @output = output
end

Instance Attribute Details

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