class Naginata::Configuration::NagiosServer
Public Instance Methods
matches?(other)
click to toggle source
# File lib/naginata/configuration/nagios_server.rb, line 22 def matches?(other) hostname == other.hostname end
netssh_options()
click to toggle source
Calls superclass method
# File lib/naginata/configuration/nagios_server.rb, line 18 def netssh_options @netssh_options ||= super.merge( fetch(:ssh_options) || {} ) end
properties()
click to toggle source
# File lib/naginata/configuration/nagios_server.rb, line 14 def properties @properties ||= Properties.new end
with(properties)
click to toggle source
# File lib/naginata/configuration/nagios_server.rb, line 9 def with(properties) properties.each { |key, value| add_property(key, value) } self end
Private Instance Methods
add_property(key, value)
click to toggle source
# File lib/naginata/configuration/nagios_server.rb, line 28 def add_property(key, value) if respond_to?("#{key}=") send("#{key}=", value) else set(key, value) end end