Class: Naginata::Configuration::NagiosServer
- Inherits:
-
SSHKit::Host
- Object
- SSHKit::Host
- Naginata::Configuration::NagiosServer
- 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
22 23 24 |
# File 'lib/naginata/configuration/nagios_server.rb', line 22 def matches?(other) hostname == other.hostname end |
#netssh_options ⇒ Object
18 19 20 |
# File 'lib/naginata/configuration/nagios_server.rb', line 18 def @netssh_options ||= super.merge( fetch(:ssh_options) || {} ) end |
#properties ⇒ Object
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 |