Add Runtime for UpdateHook

This commit is contained in:
Matthias Beyer 2016-09-07 20:54:35 +02:00
parent ced6342d01
commit c9c535f46c

View file

@ -9,21 +9,24 @@ use libimagstore::hook::position::HookPosition;
use libimagstore::hook::accessor::{HookDataAccessor, HookDataAccessorProvider};
use libimagstore::hook::accessor::StoreIdAccessor;
use vcs::git::runtime::Runtime as GRuntime;
#[derive(Debug)]
pub struct UpdateHook {
storepath: PathBuf,
runtime: GRuntime,
position: HookPosition,
config: Option<Value>,
}
impl UpdateHook {
pub fn new(storepath: PathBuf, p: HookPosition) -> UpdateHook {
UpdateHook {
runtime: GRuntime::new(&storepath),
storepath: storepath,
position: p,
config: None,
}
}