Class: NagiosOutputStatic

Inherits:
Object
  • Object
show all
Defined in:
lib/nagios_output.rb

Overview

——————————————————————————– # Description # ——————————————————————————– # This is a static access wrapper to the main HumanDuration class below. # ——————————————————————————– #

Class Method Summary collapse

Class Method Details

.critical(message = nil, config = { 'colour' => true }) ⇒ Object



46
47
48
49
# File 'lib/nagios_output.rb', line 46

def self.critical(message = nil, config = { 'colour' => true })
    n = NagiosOutput.new(config)
    n.critical(message)
end

.ok(message = nil, config = { 'colour' => true }) ⇒ Object



36
37
38
39
# File 'lib/nagios_output.rb', line 36

def self.ok(message = nil, config = { 'colour' => true })
    n = NagiosOutput.new(config)
    n.ok(message)
end

.unknown(message = nil, config = { 'colour' => true }) ⇒ Object



51
52
53
54
# File 'lib/nagios_output.rb', line 51

def self.unknown(message = nil, config = { 'colour' => true })
    n = NagiosOutput.new(config)
    n.unknown(message)
end

.warning(message = nil, config = { 'colour' => true }) ⇒ Object



41
42
43
44
# File 'lib/nagios_output.rb', line 41

def self.warning(message = nil, config = { 'colour' => true })
    n = NagiosOutput.new(config)
    n.warning(message)
end