Add Runtime::has_repository()

This commit is contained in:
Matthias Beyer 2016-07-22 15:15:31 +02:00
parent d498ed75d9
commit e0a390d840
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ impl<'a> Runtime<'a> {
res
}
pub fn has_repository(&self) -> bool {
self.repository.is_some()
}
pub fn has_config(&self) -> bool {
self.config.is_some()
}