// Helper function for programmatic creation of
// the s3 object key
Helper function for programmatic creation of
the s3 object key
Helper function for programmatic creation of the s3 object key
fn s3_key(ident: &PackageIdent, target: PackageTarget) -> Result<String> {
    // Calling this method first ensures that the ident is fully qualified and the correct errors
    // are returned in case of failure
    let hart_name = ident.archive_name_with_target(target)
                         .map_err(Error::HabitatCore)?;
    Ok(format!("{}/{}/{}",
               ident.iter().collect::<Vec<&str>>().join("/"),
               target.iter().collect::<Vec<&str>>().join("/"),
               hart_name))
}
fn s3_key ( ident : & PackageIdent , target : PackageTarget ) -> Result < String > { // Calling this method first ensures that the ident is fully qualified and the correct errors // are returned in case of failure let hart_name = ident . archive_name_with_target ( target ) . map_err ( Error :: HabitatCore ) ? ; Ok ( format ! ( " " ident iter ( ) collect Vec str ( ) join ( " " ) target iter ( ) collect Vec str ( ) join ( " " ) hart_name ) ) }
Helper function for programmatic creation of
the s3 object key
Helper function for programmatic creation of the s3 object key
ident
&PackageIdent
target
PackageTarget