b9-0.5.61: A tool and library for building virtual machine images.

B9.Repository

Description

B9 has a concept of SharedImaged. Shared images can be pulled and pushed to/from remote locations via rsync+ssh. B9 also maintains a local cache; the whole thing is supposed to be build-server-safe, that means no two builds shall interfere with each other. This is accomplished by refraining from automatic cache updates from/to remote repositories.

Synopsis

# Documentation

Initialize the local repository cache directory.

Initialize the repository; load the corresponding settings from the config file, check that the priv key exists and create the correspondig cache directory.

cleanRemoteRepo :: MonadIO m => RepoCache -> RemoteRepo -> m () Source #

Empty the repository; load the corresponding settings from the config file, check that the priv key exists and create the correspondig cache directory.

Check for existance of priv-key and make it an absolute path.

Arguments

 :: RepoCache The repository cache directory -> String Id of the repository -> FilePath The existing, absolute path to the cache directory

Return the cache directory for a remote repository relative to the root cache dir.

Arguments

 :: RepoCache The repository cache directory -> FilePath The existing, absolute path to the directory

Return the local repository directory.

Select the first RemoteRepo with a given repoId.