class Spior::Install
Public Class Methods
check_deps()
click to toggle source
# File lib/spior/install.rb, line 7 def check_deps base_packages end
Private Class Methods
base_packages()
click to toggle source
# File lib/spior/install.rb, line 13 def base_packages if not TTY::Which.exist?('iptables') or not TTY::Which.exist?('tor') case Nomansland::installer? when :emerge emerge = Helpers::Exec.new("emerge -av --changed-use") emerge.run("tor iptables") when :pacman pacman = Helpers::Exec.new("pacman -S --needed") pacman.run("tor iptables") when :yum yum = Helpers::Exec.new("yum install") yum.run("tor iptables") else apt_get = Helpers::Exec.new("apt-get install") apt_get.run("tor iptables iptables-persistent") end end end