Class: VagrantVbguest::Installers::Debian
- Defined in:
- lib/vagrant-vbguest/installers/debian.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#install(opts = nil) {|type, data| ... } ⇒ Object
installes the correct linux-headers package installes ‘dkms` package for dynamic kernel module loading.
Methods inherited from Linux
distro, #execute_installer, #guest_version, #installer, #installer_arguments, #mount_iso, #mount_point, #rebuild, #running?, #start, #systemd_tool, #tmp_path, #unmount_iso, #vboxadd_tool
Methods inherited from Base
#cleanup, #guest_version, #initialize, #installer_version, #iso_file, #mount_point, #rebuild, #running?, #start, #tmp_path, #upload, #yield_installation_error_warning, #yield_installation_waring, #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
5 6 7 |
# File 'lib/vagrant-vbguest/installers/debian.rb', line 5 def self.match?(vm) /\Adebian\d*\Z/ =~ self.distro(vm) end |
Instance Method Details
#install(opts = nil) {|type, data| ... } ⇒ Object
installes the correct linux-headers package installes ‘dkms` package for dynamic kernel module loading
15 16 17 18 19 20 21 22 23 |
# File 'lib/vagrant-vbguest/installers/debian.rb', line 15 def install(opts=nil, &block) begin communicate.sudo(install_dependencies_cmd, opts, &block) rescue communicate.sudo('apt-get update', opts, &block) communicate.sudo(install_dependencies_cmd, opts, &block) end super end |