mirror of
				https://github.com/Icinga/icinga2.git
				synced 2025-11-03 21:25:56 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			371 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			371 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/* 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);
 | 
						|
}
 |