Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement multiple template inheritance #10

Merged
merged 1 commit into from Mar 4, 2020
Merged

Conversation

graygnuorg
Copy link
Contributor

Starting from Nagios 3, multiple objects can be listed in the right-hand side of the "use" configuration
statement. This change implements multiple inheritance as described in

https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/objectinheritance.html

Short overview of the changes.

  • MANIFEST: Add new files.
  • lib/Nagios/Object/Config.pm (resolve): Store the reference to
    a Nagios::Template object in $object->{_use}.
  • lib/Nagios/Template.pm: New file.
  • t/multipletemplates.cfg: New file.
  • t/multipletemplates.t: New file.

* MANIFEST: Add new files.
* lib/Nagios/Object/Config.pm (resolve): Store the reference to
a Nagios::Template object in $object->{_use}.
* lib/Nagios/Template.pm: New file.
* t/multipletemplates.cfg: New file.
* t/multipletemplates.t: New file.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 72.81% when pulling 082637e on graygnuorg:master into 00d4caa on duncs:master.

@duncs duncs merged commit e067fa9 into duncs:master Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants