save
This commit is contained in:
parent
0c98334d1c
commit
9e900d3b79
6 changed files with 36 additions and 8 deletions
|
@ -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) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue