Sha256: dee62504ca88c94a70ddc2a860ade551797920c3586fa5181d4bbb5c7b4ef6d8
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 Bytes
Contents
module HostStatusNameConcerneable attr_accessor :hostname, :service_name, :resource def status @status ||= Nagira::HostStatusController.new(@nagios_status, hostname: hostname, output: :full) .status[hostname][resource] end def with_service_name if service_name { service_name => status[service_name] } else status end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nagira-0.5.2 | app/concerns/host_status_name_concerneable.rb |