1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #include "base/application.hpp"
4 #include "base/scriptglobal.hpp"
6 using namespace icinga;
8 String Application::GetAppEnvironment()
10 Value defaultValue = Empty;
11 return ScriptGlobal::Get("Environment", &defaultValue);
14 void Application::SetAppEnvironment(const String& name)
16 ScriptGlobal::Set("Environment", name);