]> granicus.if.org Git - icinga2/commit
Introduce IcingaApplication#environment
authorMichael Friedrich <michael.friedrich@icinga.com>
Fri, 10 Aug 2018 08:15:41 +0000 (10:15 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Fri, 10 Aug 2018 10:49:48 +0000 (12:49 +0200)
commit97513965e6b025aac527ba8be3be5daaff66c9be
tree84ef6ac45eb399cf093c7d32be9d687192fc2d20
parentcaefa58cf6e8da09ac9a2695db9e80d12ddd37b3
Introduce IcingaApplication#environment

Precedence as follows:

- DEnvironment=...
- const Environment = ...
- object IcingaApplication "app" { environment = "..." }

The wrapped script constant handling is required
since we cannot directly link from libremote (SNI handling)
to libicinga where the object resides. Instead we'll
use the Application class helpers for hiding the ScriptGlobal
calls.
lib/base/CMakeLists.txt
lib/base/application-environment.cpp [new file with mode: 0644]
lib/base/application.hpp
lib/icinga/icingaapplication.cpp
lib/icinga/icingaapplication.hpp
lib/icinga/icingaapplication.ti
lib/remote/apilistener.cpp
lib/remote/apilistener.ti