All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openshift.client.configuration.UserConfiguration Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2011 Red Hat, Inc.
 * Distributed under license by Red Hat, Inc. All rights reserved.
 * This program is made available under the terms of the
 * Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Red Hat, Inc. - initial API and implementation
 ******************************************************************************/
package com.openshift.client.configuration;

import java.io.File;
import java.io.IOException;

import com.openshift.client.OpenShiftException;

/**
 * @author André Dietisheim
 */
public class UserConfiguration extends AbstractOpenshiftConfiguration {

	private static final String CONFIGURATION_FOLDER = ".openshift";
	private static final String CONFIGURATION_FILE = "express.conf";
	private static final String PROPERTY_USERHOME = "user.home";
	
	public UserConfiguration(SystemConfiguration systemConfiguration) throws OpenShiftException, IOException {
		super(new File(System.getProperty(PROPERTY_USERHOME) + File.separatorChar + CONFIGURATION_FOLDER, CONFIGURATION_FILE), systemConfiguration);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy