sorry for the late response, I was PTO last week.yes you can using the openshift-java-client. There are several methods to list, add, remove env variables in a given application:
On 07/02/2014 09:13 AM, Shabna M wrote:
Is there a way to set environment variable to an Open Shift Cartridge using Open Shift Java Client or any other way apart from rhc set env ?
public Map<String, IEnvironmentVariable> getEnvironmentVariables() throws OpenShiftSSHOperationException
public String getEnvironmentVariableValue(String name)
public IEnvironmentVariable addEnvironmentVariable(String name, String value) throws OpenShiftException
public void removeEnvironmentVariable(String name) throws OpenShiftException;
Is this what you're looking for?