Class: VagrantVbguest::Installers::CentOS

Inherits:
RedHat show all
Defined in:
lib/vagrant-vbguest/installers/centos.rb

Instance Attribute Summary

Attributes inherited from Base

#env, #host, #options, #vm

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Linux

#execute_installer, #find_tool, #guest_version, #installer, #installer_arguments, #mount_iso, #mount_point, #os_release, os_release, #rebuild, #running?, #start, #systemd_tool, #tmp_path, #unmount_iso, #yes

Methods inherited from Base

#cleanup, distro, #guest_version, #initialize, #installer_version, #iso_file, #mount_point, #rebuild, #running?, #start, #tmp_path, #upload, #yield_installation_error_warning, #yield_installation_warning, #yield_rebuild_warning

Methods included from Helpers::VmCompatible

#communicate, #driver, included

Constructor Details

This class inherits a constructor from VagrantVbguest::Installers::Base

Class Method Details

.match?(vm) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/vagrant-vbguest/installers/centos.rb', line 5

def self.match?(vm)
  super && communicate_to(vm).test('test -f /etc/centos-release')
end

Instance Method Details

#install(opts = nil, &block) ⇒ Object

Install missing deps and yield up to regular linux installation



10
11
12
13
# File 'lib/vagrant-vbguest/installers/centos.rb', line 10

def install(opts=nil, &block)
  install_kernel_deps(opts, &block)
  super
end