Sha256: 6a9bba92b82b9c5b5b58dfff7a743274b85d206fcd5c536b8c61dc610386b957

Contents?: true

Size: 759 Bytes

Versions: 18

Compression:

Stored size: 759 Bytes

Contents

module VagrantVbguest
  module Installers
    class Archlinux < Linux

      def self.match?(vm)
        :arch == self.distro(vm)
      end

      # Install missing deps and yield up to regular linux installation
      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
      def install_dependencies_cmd
        "pacman -S #{dependencies} --noconfirm --needed"
      end

      def dependencies
        ['gcc', 'dkms', 'make', 'bzip2'].join(' ')
      end
    end
  end
end
VagrantVbguest::Installer.register(VagrantVbguest::Installers::Archlinux, 5)

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
vagrant-vbguest-0.31.0 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.30.0 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.29.0 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.28.0 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.27.0 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.26.0 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.25.0 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.24.0 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.24.0.beta1 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.23.0 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.22.1 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.22.0 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.21.0 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.20.0 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.19.0 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.18.0 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.17.2 lib/vagrant-vbguest/installers/archlinux.rb
vagrant-vbguest-0.17.1 lib/vagrant-vbguest/installers/archlinux.rb