class Pandur::Host
Public Class Methods
new(target)
click to toggle source
# File lib/pandur/host.rb, line 8 def initialize(target) @config = target end
Public Instance Methods
check()
click to toggle source
# File lib/pandur/host.rb, line 12 def check logger.debug("Connecting to #{@config['username']}@#{@config['hostname']}") Net::SSH.start(@config['hostname'], @config['username'], :password => @config['password']) do |ssh| @config['check'].each do |check| Pandur::Check.new(check).check(ssh) end end end