Class: VagrantVbguestCentos::Installer
- Inherits:
-
VagrantVbguest::Installers::Linux
- Object
- VagrantVbguest::Installers::Linux
- VagrantVbguestCentos::Installer
- Defined in:
- lib/vagrant-vbguest-centos/installer.rb
Class Method Summary collapse
-
.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.
Instance Method Summary collapse
-
#install(opts = nil, &block) ⇒ Object
Install missing deps and yield up to regular linux installation.
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.
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 |