
ch.sbb.releasetrain.state.AbstractStateFileAccess Maven / Gradle / Ivy
The newest version!
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements;
* and to You under the Apache License, Version 2.0.
*/
package ch.sbb.releasetrain.state;
import java.io.File;
import ch.sbb.releasetrain.state.model.ReleaseState;
import ch.sbb.releasetrain.utils.yaml.YamlModelAccessor;
/**
* @author u206123 (Florian Seidl)
* @since 0.0.6, 2016.
*/
abstract class AbstractStateFileAccess {
protected final YamlModelAccessor converter = new YamlModelAccessor<>();
protected final File dir;
public AbstractStateFileAccess(File dir) {
this.dir = dir;
}
protected File file(final String releaseIdentifier) {
return new File(dir, releaseIdentifier + "-stored-state.yml");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy