lib/shaddox/shadow.rb in shaddox-0.0.29 vs lib/shaddox/shadow.rb in shaddox-0.0.30
- old
+ new
@@ -135,10 +135,11 @@
choose do |menu|
menu.prompt = "Please select a package manager to use:"
menu.choice(:apt) { @installer = :apt }
menu.choice(:brew) { @installer = :brew }
+ menu.choice(:pacman) { @installer = :pacman }
end
puts "-------------------"
end
raise "No installer specified for this target!" unless @installer
info "Ensuring #{package} is installed with #{@installer}", 1 if @debug
@@ -147,9 +148,11 @@
case @installer
when :apt
exec "sudo apt-get install -y #{package}"
when :brew
exec "brew install #{package}"
+ when :pacman
+ exec "pacman -S --noconfirm #{package}"
end
end
raise "#{package} could not be installed." unless package_installed.call()
end
end