Package cz.xtf.core.openshift
Class OpenShiftBinary
- java.lang.Object
-
- cz.xtf.core.openshift.OpenShiftBinary
-
public class OpenShiftBinary extends Object
-
-
Constructor Summary
Constructors Constructor Description OpenShiftBinary(String path)OpenShiftBinary(String path, String ocConfigPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(String sourcePath)Apply configuration file.voidapply(String namespace, String sourcePath)Apply configuration file in the specified namespace.voidapply(String namespace, List<String> sourcePaths)Apply configuration files in the order they appear in the list, using supplied namespace.voidapply(List<String> sourcePaths)Apply configuration files in the order they appear in the listStringexecute(String... args)voidlogin(String url, String token)voidlogin(String url, String username, String password)voidproject(String projectName)voidstartBuild(String buildConfig, String sourcePath)
-
-
-
Method Detail
-
apply
public void apply(String namespace, String sourcePath)
Apply configuration file in the specified namespace. Delegates to `oc apply --filename='sourcepath' --namespace='namespace'`- Parameters:
sourcePath- path to configration filenamespace- namespace
-
apply
public void apply(String sourcePath)
Apply configuration file. Delegates to `oc apply --filename='sourcepath`- Parameters:
sourcePath- path to configration file
-
apply
public void apply(List<String> sourcePaths)
Apply configuration files in the order they appear in the list- Parameters:
sourcePaths- list of paths to configuration files
-
apply
public void apply(String namespace, List<String> sourcePaths)
Apply configuration files in the order they appear in the list, using supplied namespace.- Parameters:
namespace- namespace in which the configuration files should be appliedsourcePaths- list of paths to configuration files
-
project
public void project(String projectName)
-
-