com.rationaleemotions.pojo.EnvVariable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simple-ssh Show documentation
Show all versions of simple-ssh Show documentation
A simple way of interacting with a remote host for executing commands, scp (upload and download)
The newest version!
package com.rationaleemotions.pojo;
/**
* This POJO represents the name value pair of an environment variable.
*/
public class EnvVariable {
private String name;
private String value;
public EnvVariable(String name, String value) {
this.name = name;
this.value = value;
}
/**
* @return - The name of the environment variable.
*/
public String getName() {
return name;
}
/**
* @return - The value of the environment variable.
*/
public String getValue() {
return value;
}
@Override
public String toString() {
return "EnvNameValuePair{name='" + getName() + "\', value='" + getValue() + "\'}";
}
public String prettyPrintedForShell(Shells shell) {
return String.format("%s %s%s%s", shell.envKeyword(),name, shell.envSeparator(), value);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy