pub fn resolve(&self, filename: &str) -> Fallible<String> {
        match &self {
            MetadataHook::Prefix(prefix) => Ok(format!("{}{}", prefix, filename)),
            MetadataHook::Template(template) => Ok(template
                .replace(ARCH_TEMPLATE, NODE_DISTRO_ARCH)
                .replace(OS_TEMPLATE, NODE_DISTRO_OS)),
            MetadataHook::Bin { bin, base_path } => execute_binary(bin, base_path, None),
        }
    }
/// Performs resolution of the metadata URL based on the given default file name
Performs resolution of the metadata URL based on the given default file name
Performs resolution of the metadata URL based on the given default file name
pub fn resolve(&self, filename: &str) -> Fallible<String> {
        match &self {
            MetadataHook::Prefix(prefix) => Ok(format!("{}{}", prefix, filename)),
            MetadataHook::Template(template) => Ok(template
                .replace(ARCH_TEMPLATE, NODE_DISTRO_ARCH)
                .replace(OS_TEMPLATE, NODE_DISTRO_OS)),
            MetadataHook::Bin { bin, base_path } => execute_binary(bin, base_path, None),
        }
    }
pub fn resolve ( & self , filename : & str ) -> Fallible < String > { match & self { MetadataHook :: Prefix ( prefix ) => Ok ( format ! ( " " prefix filename ) ) , MetadataHook :: Template ( template ) => Ok ( template . replace ( ARCH_TEMPLATE , NODE_DISTRO_ARCH ) . replace ( OS_TEMPLATE , NODE_DISTRO_OS ) ) , MetadataHook :: Bin { bin , base_path } => execute_binary ( bin , base_path , None ) , } }
Performs resolution of the metadata URL based on the given default file name
Performs resolution of the metadata URL based on the given default file name
&self
filename
&str
&self
filename
&str