Struct rhq_core::Workspace
[−]
[src]
pub struct Workspace { /* fields omitted */ }
Methods
impl Workspace
[src]
fn new() -> Result<Self>
[src]
fn set_root_dir<P: Into<PathBuf>>(&mut self, root: P)
[src]
fn verbose_output(self, verbose: bool) -> Self
[src]
fn print(&self, args: Arguments)
[src]
fn repositories(&self) -> Option<&[Repository]>
[src]
Returns a list of managed repositories. Note that this method returns None if cache has not created yet.
fn config(&self) -> &Config
[src]
fn import_repositories<P: AsRef<Path>>(
&mut self,
root: P,
depth: Option<usize>
) -> Result<()>
[src]
&mut self,
root: P,
depth: Option<usize>
) -> Result<()>
fn add_repository(&mut self, repo: Repository)
[src]
fn add_repository_if_exists(&mut self, path: &Path) -> Result<()>
[src]
fn drop_invalid_repositories(&mut self)
[src]
fn sort_repositories(&mut self)
[src]
fn save_cache(&mut self) -> Result<()>
[src]
Save current state of workspace to cache file.
fn resolve_query(&self, query: &Query) -> Result<PathBuf>
[src]
fn default_host(&self) -> &str
[src]
fn for_each_repo<F: Fn(&Repository) -> Result<()>>(&self, f: F) -> Result<()>
[src]
fn create_empty_repository(&mut self, path: &Path, vcs: Vcs) -> Result<()>
[src]
fn clone_repository(
&mut self,
remote: Remote,
dest: &Path,
vcs: Vcs
) -> Result<()>
[src]
&mut self,
remote: Remote,
dest: &Path,
vcs: Vcs
) -> Result<()>