| | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Representation of ~/.borgbutler/borgbutler-config.json. |
| | | */ |
| | | public class Configuration { |
| | | private Logger log = LoggerFactory.getLogger(Configuration.class); |
| | | /** |
| | |
| | | @JsonIgnore |
| | | private File workingDir; |
| | | /** |
| | | * The path of the borg command to use. |
| | | * The path of the borg command to use (optional). |
| | | */ |
| | | private String borgCommand; |
| | | |
| | | /** |
| | | * The borg version to install from github (optional). |
| | | */ |
| | | private String borgVersion; |
| | | |
| | | /** |
| | | * Default is 100 MB (approximately). |
| | | */ |
| | | private int maxArchiveContentCacheCapacityMb = 100; |
| | |
| | | return repoConfigs; |
| | | } |
| | | |
| | | /** |
| | | * Optional borg command to use. |
| | | */ |
| | | public String getBorgCommand() { |
| | | return this.borgCommand; |
| | | } |
| | | |
| | | public String getBorgVersion() { |
| | | return borgVersion; |
| | | } |
| | | |
| | | public int getMaxArchiveContentCacheCapacityMb() { |
| | | return this.maxArchiveContentCacheCapacityMb; |
| | | } |
| | |
| | | return this; |
| | | } |
| | | |
| | | public void setBorgVersion(String borgVersion) { |
| | | this.borgVersion = borgVersion; |
| | | } |
| | | |
| | | public Configuration setShowDemoRepos(boolean showDemoRepos) { |
| | | this.showDemoRepos = showDemoRepos; |
| | | return this; |