2023-08-10 23:17:15 -05:00
|
|
|
class Provider:
|
|
|
|
|
def __init__(self, name, arch):
|
|
|
|
|
self.name = name
|
|
|
|
|
self.arch = arch
|
|
|
|
|
|
|
|
|
|
def __str__(self) -> str:
|
|
|
|
|
return f"{self.name}.{self.arch}"
|
2023-12-06 08:21:32 -08:00
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def runner(self) -> str:
|
|
|
|
|
if self.name == "qemu":
|
2023-12-12 11:57:09 -06:00
|
|
|
return "isaiah"
|
2023-12-06 08:21:32 -08:00
|
|
|
elif self.name.startswith("virtualbox"):
|
2023-12-12 11:57:09 -06:00
|
|
|
return "isaiah"
|
2023-12-06 08:21:32 -08:00
|
|
|
return None
|