summaryrefslogtreecommitdiffstats
path: root/src/config/configuration.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/configuration.rs')
-rw-r--r--src/config/configuration.rs21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/config/configuration.rs b/src/config/configuration.rs
index 294c5cb..162115b 100644
--- a/src/config/configuration.rs
+++ b/src/config/configuration.rs
@@ -9,12 +9,11 @@ use handlebars::Handlebars;
use crate::config::NotValidatedConfiguration;
#[derive(Debug)]
-pub struct Configuration<'reg> {
+pub struct Configuration {
pub (in crate::config) inner: NotValidatedConfiguration,
- pub (in crate::config) hb: Handlebars<'reg>,
}
-impl<'reg> Deref for Configuration<'reg> {
+impl Deref for Configuration {
type Target = NotValidatedConfiguration;
fn deref(&self) -> &Self::Target {
@@ -22,19 +21,3 @@ impl<'reg> Deref for Configuration<'reg> {
}
}
-impl<'reg> Configuration<'reg> {
- /// Get the path to the releases directory, interpolate every variable used in the config
- pub fn releases_directory(&self, hm: &BTreeMap<String, String>) -> Result<PathBuf> {
- self.hb.render("releases", hm)
- .map(PathBuf::from)
- .context("Interpolating variables into 'release' setting from configuration")
- }
-
- /// Get the path to the staging directory, interpolate every variable used in the config
- pub fn staging_directory(&self, hm: &BTreeMap<String, String>) -> Result<PathBuf> {
- self.hb.render("staging", hm)
- .map(PathBuf::from)
- .context("Interpolating variables into 'staging' setting from configuration")
- }
-}
-