creating raw images for QEMU
This commit is contained in:
parent
3b9e0a1f33
commit
49cc960703
13 changed files with 164 additions and 17 deletions
|
|
@ -1,10 +1,15 @@
|
|||
require 'open3'
|
||||
require_relative "utils"
|
||||
|
||||
module MacOSSystem
|
||||
def os_name
|
||||
"macOS"
|
||||
end
|
||||
|
||||
def arch
|
||||
sh("sysctl -n hw.machine")
|
||||
end
|
||||
|
||||
def cpus
|
||||
stdout, stderr, status = Open3.capture3("sysctl -n hw.ncpu")
|
||||
stdout.strip.to_i
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue