pub fn pull_artifact(&self, hash: &Hash) -> Result<File, anyhow::Error> {
        info!(
            "An artifact is being pulled from the artifact manager {}",
            hash
        );
        let mut base_path: PathBuf = base_file_path(hash, &self.repository_path);
        // for now all artifacts are unstructured
        base_path.set_extension(FILE_EXTENSION);
        debug!("Pulling artifact from {}", base_path.display());
        File::open(base_path.as_path())
            .with_context(|| format!("{} not found.", base_path.display()))
    }
/// Pull an artifact. The current implementation only looks in the local node's repository.
Pull an artifact. The current implementation only looks in the local node's repository.
Pull an artifact . The current implementation only looks in the local node ' s repository .
pub fn pull_artifact(&self, hash: &Hash) -> Result<File, anyhow::Error> {
        info!(
            "An artifact is being pulled from the artifact manager {}",
            hash
        );
        let mut base_path: PathBuf = base_file_path(hash, &self.repository_path);
        // for now all artifacts are unstructured
        base_path.set_extension(FILE_EXTENSION);
        debug!("Pulling artifact from {}", base_path.display());
        File::open(base_path.as_path())
            .with_context(|| format!("{} not found.", base_path.display()))
    }
pub fn pull_artifact ( & self , hash : & Hash ) -> Result < File , anyhow :: Error > { info ! ( " " hash ) ; let mut base_path : PathBuf = base_file_path ( hash , & self . repository_path ) ; // for now all artifacts are unstructured base_path . set_extension ( FILE_EXTENSION ) ; debug ! ( " " base_path display ( ) ) ; File :: open ( base_path . as_path ( ) ) . with_context ( | | format ! ( " " base_path display ( ) ) ) }
Pull an artifact.
Pull an artifact .
&self
hash
&Hash
&self
hash
&Hash