pub fn put_artifact(
    artifact_storage: &ArtifactStorage,
    artifact_hash: &Hash,
    art_reader: Box<dyn Read>,
) -> Result<(), anyhow::Error> {
    info!("put_artifact hash: {}", artifact_hash);
    let mut buf_reader = BufReader::new(art_reader);
    artifact_storage
        .push_artifact(&mut buf_reader, artifact_hash)
        .context("Error from put_artifact")
}
//put_artifact: given artifact_hash(artifactName) & artifact_path push artifact to artifact_manager
//              and returns the boolean as true or false if it was able to create or not
given artifact_hash(artifactName) & artifact_path push artifact to artifact_manager
and returns the boolean as true or false if it was able to create or not
given artifact_hash ( artifactName ) & artifact_path push artifact to artifact_manager and returns the boolean as true or false if it was able to create or not
pub fn put_artifact(
    artifact_storage: &ArtifactStorage,
    artifact_hash: &Hash,
    art_reader: Box<dyn Read>,
) -> Result<(), anyhow::Error> {
    info!("put_artifact hash: {}", artifact_hash);
    let mut buf_reader = BufReader::new(art_reader);
    artifact_storage
        .push_artifact(&mut buf_reader, artifact_hash)
        .context("Error from put_artifact")
}
pub fn put_artifact ( artifact_storage : & ArtifactStorage , artifact_hash : & Hash , art_reader : Box < dyn Read > , ) -> Result < ( ) , anyhow :: Error > { info ! ( " " artifact_hash ) ; let mut buf_reader = BufReader :: new ( art_reader ) ; artifact_storage . push_artifact ( & mut buf_reader , artifact_hash ) . context ( " " ) }
put_artifact: given artifact_hash(artifactName) & artifact_path push artifact to artifact_manager
and returns the boolean as true or false if it was able to create or not
put_artifact : given artifact_hash ( artifactName ) & artifact_path push artifact to artifact_manager and returns the boolean as true or false if it was able to create or not
artifact_storage
&ArtifactStorage
artifact_hash
&Hash
art_reader
Box<dyn Read>
artifact_storage
&ArtifactStorage
artifact_hash
&Hash
art_reader
Box<dyn Read>