pub async fn default_n(
    aingle_path: &Path,
    create: Create,
    happ: PathBuf,
    app_id: InstalledAppId,
) -> anyhow::Result<Vec<PathBuf>> {
    let num_sandboxes = create.num_sandboxes;
    msg!(
        "Creating {} conductor sandboxes with same settings",
        num_sandboxes
    );
    let mut paths = Vec::with_capacity(num_sandboxes);
    for i in 0..num_sandboxes {
        let p = default_with_network(
            aingle_path,
            create.clone(),
            create.directories.get(i).cloned(),
            happ.clone(),
            app_id.clone(),
        )
        .await?;
        paths.push(p);
    }
    msg!("Created {:?}", paths);
    Ok(paths)
}
/// Same as [`default_with_network`] but creates n copies
/// of this sandbox in their own directories.
Same as [`default_with_network`] but creates n copies
of this sandbox in their own directories.
Same as [ ` default_with_network ` ] but creates n copies of this sandbox in their own directories .
pub async fn default_n(
    aingle_path: &Path,
    create: Create,
    happ: PathBuf,
    app_id: InstalledAppId,
) -> anyhow::Result<Vec<PathBuf>> {
    let num_sandboxes = create.num_sandboxes;
    msg!(
        "Creating {} conductor sandboxes with same settings",
        num_sandboxes
    );
    let mut paths = Vec::with_capacity(num_sandboxes);
    for i in 0..num_sandboxes {
        let p = default_with_network(
            aingle_path,
            create.clone(),
            create.directories.get(i).cloned(),
            happ.clone(),
            app_id.clone(),
        )
        .await?;
        paths.push(p);
    }
    msg!("Created {:?}", paths);
    Ok(paths)
}
pub async fn default_n ( aingle_path : & Path , create : Create , happ : PathBuf , app_id : InstalledAppId , ) -> anyhow :: Result < Vec < PathBuf > > { let num_sandboxes = create . num_sandboxes ; msg ! ( " " num_sandboxes ) ; let mut paths = Vec :: with_capacity ( num_sandboxes ) ; for i in 0 .. num_sandboxes { let p = default_with_network ( aingle_path , create . clone ( ) , create . directories . get ( i ) . cloned ( ) , happ . clone ( ) , app_id . clone ( ) , ) . await ? ; paths . push ( p ) ; } msg ! ( " " paths ) ; Ok ( paths ) }
Same as [`default_with_network`] but creates n copies
of this sandbox in their own directories.
Same as [ ` default_with_network ` ] but creates n copies of this sandbox in their own directories .
aingle_path
&Path
create
Create
happ
PathBuf
app_id
InstalledAppId
aingle_path
&Path
create
Create
happ
PathBuf
app_id
InstalledAppId