Class: VagrantVbguestCentos::Installer

Inherits:
VagrantVbguest::Installers::Linux
  • Object
show all
Defined in:
lib/vagrant-vbguest-centos/installer.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.match?(vm) ⇒ Boolean

Scientific Linux and CentOS show up as :redhat (or “centos7”) fortunately they’re probably both similar enough to RHEL (RedHat Enterprise Linux) not to matter.

Returns:

  • (Boolean)


6
7
8
9
# File 'lib/vagrant-vbguest-centos/installer.rb', line 6

def self.match?(vm)
  /\A(centos)\d*\Z/ =~ self.distro(vm) ||
    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



12
13
14
15
16
# File 'lib/vagrant-vbguest-centos/installer.rb', line 12

def install(opts=nil, &block)
  communicate.sudo(install_dependencies_cmd, opts, &block)
  install_kernel_dependencies!(opts, &block)
  super
end