class VagrantVbguest::Installers::Fedora

Public Class Methods

match?(vm) click to toggle source
# File lib/vagrant-vbguest/installers/fedora.rb, line 5
def self.match?(vm)
  :fedora == 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/fedora.rb, line 10
def install(opts=nil, &block)
  communicate.sudo(install_dependencies_cmd, opts, &block)
  super
end

Protected Instance Methods

dependencies() click to toggle source
# File lib/vagrant-vbguest/installers/fedora.rb, line 21
def dependencies
  ['kernel-devel-`uname -r`', 'gcc', 'dkms', 'make', 'perl', 'bzip2'].join(' ')
end
install_dependencies_cmd() click to toggle source
# File lib/vagrant-vbguest/installers/fedora.rb, line 17
def install_dependencies_cmd
  "`bash -c 'type -p dnf || type -p yum'` install -y #{dependencies}"
end