Class: Nagios::Promoo::Occi::Probes::BaseProbe
- Inherits:
-
Object
- Object
- Nagios::Promoo::Occi::Probes::BaseProbe
- Defined in:
- lib/nagios/promoo/occi/probes/base_probe.rb
Overview
Base probe for all OCCI-related probes.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize(options) ⇒ BaseProbe
constructor
A new instance of BaseProbe.
Constructor Details
#initialize(options) ⇒ BaseProbe
Returns a new instance of BaseProbe.
17 18 19 |
# File 'lib/nagios/promoo/occi/probes/base_probe.rb', line 17 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
15 16 17 |
# File 'lib/nagios/promoo/occi/probes/base_probe.rb', line 15 def @options end |
Class Method Details
.runnable? ⇒ Boolean
10 11 12 |
# File 'lib/nagios/promoo/occi/probes/base_probe.rb', line 10 def runnable? false end |
Instance Method Details
#client ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/nagios/promoo/occi/probes/base_probe.rb', line 21 def client @_client ||= ::Occi::Api::Client::ClientHttp.new( endpoint: [:endpoint], auth: { type: [:auth].gsub('-voms', ''), user_cert: [:token].gsub('file://', ''), user_cert_password: nil, token: [:token], ca_path: [:ca_path], voms: [:auth] == 'x509-voms' }, log: { level: [:debug] ? ::Occi::Api::Log::DEBUG : ::Occi::Api::Log::ERROR, logger: nil, out: '/dev/null' } ) end |