tangled
alpha
login
or
join now
tsiry-sandratraina.com
/
fireup
8
fork
atom
Prepare, configure, and manage Firecracker microVMs in seconds!
virtualization
linux
microvm
firecracker
8
fork
atom
overview
issues
pulls
pipelines
run cargo fmt
tsiry-sandratraina.com
5 months ago
ddf31755
2d5f89c1
+2
-10
1 changed file
expand all
collapse all
unified
split
crates
firecracker-up
src
cmd
cp.rs
+2
-10
crates/firecracker-up/src/cmd/cp.rs
···
34
34
let key_path = get_private_key_path()?;
35
35
36
36
let scp_args = if from.contains(':') {
37
37
-
let remote_path = format!(
38
38
-
"root@{}:{}",
39
39
-
guest_ip,
40
40
-
from.splitn(2, ':').nth(1).unwrap()
41
41
-
);
37
37
+
let remote_path = format!("root@{}:{}", guest_ip, from.splitn(2, ':').nth(1).unwrap());
42
38
vec!["-r", remote_path.as_str(), to]
43
39
.iter()
44
40
.map(|s| s.to_string())
45
41
.collect::<Vec<String>>()
46
42
} else {
47
47
-
let remote_path = format!(
48
48
-
"root@{}:{}",
49
49
-
guest_ip,
50
50
-
to.splitn(2, ':').nth(1).unwrap()
51
51
-
);
43
43
+
let remote_path = format!("root@{}:{}", guest_ip, to.splitn(2, ':').nth(1).unwrap());
52
44
vec!["-r", from, remote_path.as_str()]
53
45
.iter()
54
46
.map(|s| s.to_string())