class Nagios::Promoo::Occi::Probes::BaseProbe
Base probe for all OCCI-related probes.
@author Boris Parak <parak@cesnet.cz>
Attributes
options[R]
Public Class Methods
new(options)
click to toggle source
# File lib/nagios/promoo/occi/probes/base_probe.rb, line 17 def initialize(options) @options = options end
runnable?()
click to toggle source
# File lib/nagios/promoo/occi/probes/base_probe.rb, line 10 def runnable? false end
Public Instance Methods
client()
click to toggle source
# File lib/nagios/promoo/occi/probes/base_probe.rb, line 21 def client @_client ||= ::Occi::Api::Client::ClientHttp.new( endpoint: options[:endpoint], auth: { type: options[:auth].gsub('-voms', ''), user_cert: options[:token].gsub('file://', ''), user_cert_password: nil, token: options[:token], ca_path: options[:ca_path], voms: options[:auth] == 'x509-voms' }, log: { level: options[:debug] ? ::Occi::Api::Log::DEBUG : ::Occi::Api::Log::ERROR, logger: nil, out: '/dev/null' } ) end