Class: VagrantVbguest::Installers::RedHat
- Defined in:
- lib/vagrant-vbguest/installers/redhat.rb
Instance Attribute Summary
Attributes inherited from Base
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.
Methods inherited from Linux
#cleanup, #execute_installer, #find_tool, #guest_version, #installer, #installer_arguments, #installer_options, #mount_iso, #mount_point, #os_release, os_release, #provides_vboxadd_tools?, #rebuild, #running?, #start, #systemd_tool, #tmp_path, #unmount_iso, #vboxadd_tools_available?, #yes
Methods inherited from Base
#cleanup, distro, #guest_version, #host_version, #initialize, #installer_options, #installer_version, #iso_file, #mount_point, #provides_vboxadd_tools?, #reboot_after_install?, #rebuild, #running?, #start, #tmp_path, #upload, #vboxadd_tools_available?, #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
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.
7 8 9 |
# File 'lib/vagrant-vbguest/installers/redhat.rb', line 7 def self.match?(vm) /\A(redhat|centos|amazon|rocky|alma)\d*\Z/ =~ self.distro(vm) end |
Instance Method Details
#install(opts = nil, &block) ⇒ Object
Install missing deps and yield up to regular linux installation
12 13 14 15 |
# File 'lib/vagrant-vbguest/installers/redhat.rb', line 12 def install(opts=nil, &block) communicate.sudo(install_dependencies_cmd, opts, &block) super end |