fn ensure_node(version: &Version, session: &mut Session) -> Fallible<()> {
    let inventory = session.inventory()?;

    if !inventory.node.versions.contains(version) {
        Node::new(version.clone()).fetch_internal(session)?;
    }

    Ok(())
}
/// Ensures that a specific Node version has been fetched and unpacked
Ensures that a specific Node version has been fetched and unpacked
Ensures that a specific Node version has been fetched and unpacked
fn ensure_node(version: &Version, session: &mut Session) -> Fallible<()> {
    let inventory = session.inventory()?;
    if !inventory.node.versions.contains(version) {
        Node::new(version.clone()).fetch_internal(session)?;
    }
    Ok(())
}
fn ensure_node ( version : & Version , session : & mut Session ) -> Fallible < ( ) > { let inventory = session . inventory ( ) ? ; if ! inventory . node . versions . contains ( version ) { Node :: new ( version . clone ( ) ) . fetch_internal ( session ) ? ; } Ok ( ( ) ) }
Ensures that a specific Node version has been fetched and unpacked
Ensures that a specific Node version has been fetched and unpacked
version
&Version
session
&mut Session
version
&Version
session
&mut Session