Class: Nagios::Promoo::Opennebula::Master
- Inherits:
-
Thor
- Object
- Thor
- Nagios::Promoo::Opennebula::Master
- Defined in:
- lib/nagios/promoo/opennebula/master.rb
Overview
Master class for all OpenNebula probes.
Class Method Summary collapse
- .available_probes ⇒ Object
-
.banner(command, _namespace = nil, _subcommand = nil) ⇒ Object
Hack to override the help message produced by Thor.
Instance Method Summary collapse
Class Method Details
.available_probes ⇒ Object
37 38 39 40 41 42 |
# File 'lib/nagios/promoo/opennebula/master.rb', line 37 def available_probes probes = Nagios::Promoo::Opennebula::Probes.constants.collect do |probe| Nagios::Promoo::Opennebula::Probes.const_get(probe) end probes.select(&:runnable?) end |
.banner(command, _namespace = nil, _subcommand = nil) ⇒ Object
Hack to override the help message produced by Thor. github.com/wycats/thor/issues/261#issuecomment-16880836
33 34 35 |
# File 'lib/nagios/promoo/opennebula/master.rb', line 33 def (command, _namespace = nil, _subcommand = nil) "#{basename} opennebula #{command.usage}" end |
Instance Method Details
#version ⇒ Object
67 68 69 |
# File 'lib/nagios/promoo/opennebula/master.rb', line 67 def version puts Nagios::Promoo::Opennebula::VERSION end |