class VagrantVbguest::Installers::Archlinux
Public Class Methods
match?(vm)
click to toggle source
# File lib/vagrant-vbguest/installers/archlinux.rb, line 5 def self.match?(vm) :arch == self.distro(vm) end
Public Instance Methods
install(opts=nil, &block)
click to toggle source
Install missing deps and yield up to regular linux installation
Calls superclass method
# File lib/vagrant-vbguest/installers/archlinux.rb, line 10 def install(opts=nil, &block) # Update the package list communicate.sudo("pacman -Sy", opts, &block) # Install the dependencies communicate.sudo(install_dependencies_cmd, opts, &block) super end
Protected Instance Methods
dependencies()
click to toggle source
# File lib/vagrant-vbguest/installers/archlinux.rb, line 23 def dependencies ['gcc', 'dkms', 'make', 'bzip2'].join(' ') end
install_dependencies_cmd()
click to toggle source
# File lib/vagrant-vbguest/installers/archlinux.rb, line 19 def install_dependencies_cmd "pacman -S #{dependencies} --noconfirm --needed" end