This commit is contained in:
Artur Gurgul 2025-08-03 14:47:59 +02:00
parent 0c98334d1c
commit 9e900d3b79
6 changed files with 36 additions and 8 deletions

View file

@ -1,8 +1,15 @@
require 'open3'
module DebianSystem
def os_name
"Debian Linux"
end
def cpus
stdout, stderr, status = Open3.capture3("nproc")
stdout.strip.to_i
end
def install(packages)
missing_packages = packages.reject { |pkg| package_installed?(pkg) }