Class: NagiosOutputStatic
- Inherits:
-
Object
- Object
- NagiosOutputStatic
- Defined in:
- lib/nagios_output.rb
Overview
——————————————————————————– # Description # ——————————————————————————– # This is a static access wrapper to the main HumanDuration class below. # ——————————————————————————– #
Class Method Summary collapse
- .critical(message = nil, config = { 'colour' => true }) ⇒ Object
- .ok(message = nil, config = { 'colour' => true }) ⇒ Object
- .unknown(message = nil, config = { 'colour' => true }) ⇒ Object
- .warning(message = nil, config = { 'colour' => true }) ⇒ Object
Class Method Details
.critical(message = nil, config = { 'colour' => true }) ⇒ Object
46 47 48 49 |
# File 'lib/nagios_output.rb', line 46 def self.critical( = nil, config = { 'colour' => true }) n = NagiosOutput.new(config) n.critical() end |
.ok(message = nil, config = { 'colour' => true }) ⇒ Object
36 37 38 39 |
# File 'lib/nagios_output.rb', line 36 def self.ok( = nil, config = { 'colour' => true }) n = NagiosOutput.new(config) n.ok() end |
.unknown(message = nil, config = { 'colour' => true }) ⇒ Object
51 52 53 54 |
# File 'lib/nagios_output.rb', line 51 def self.unknown( = nil, config = { 'colour' => true }) n = NagiosOutput.new(config) n.unknown() end |
.warning(message = nil, config = { 'colour' => true }) ⇒ Object
41 42 43 44 |
# File 'lib/nagios_output.rb', line 41 def self.warning( = nil, config = { 'colour' => true }) n = NagiosOutput.new(config) n.warning() end |