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