Class: Naginata::Configuration::NagiosServer

Inherits:
SSHKit::Host
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/naginata/configuration/nagios_server.rb

Defined Under Namespace

Classes: Properties

Instance Method Summary collapse

Instance Method Details

#matches?(other) ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/naginata/configuration/nagios_server.rb', line 22

def matches?(other)
  hostname == other.hostname
end

#netssh_optionsObject



18
19
20
# File 'lib/naginata/configuration/nagios_server.rb', line 18

def netssh_options
  @netssh_options ||= super.merge( fetch(:ssh_options) || {} )
end

#propertiesObject



14
15
16
# File 'lib/naginata/configuration/nagios_server.rb', line 14

def properties
  @properties ||= Properties.new
end

#with(properties) ⇒ Object



9
10
11
12
# File 'lib/naginata/configuration/nagios_server.rb', line 9

def with(properties)
  properties.each { |key, value| add_property(key, value) }
  self
end