lib/vagrant-vbguest/installers/linux.rb in vagrant-vbguest-0.6.2 vs lib/vagrant-vbguest/installers/linux.rb in vagrant-vbguest-0.6.3

- old
+ new

@@ -21,11 +21,11 @@ # this method was not overridden. This is considered an # error because, subclassed Installers usually indicate # a more specific distributen like 'ubuntu' or 'arch' and # therefore should do a more specific check. def self.match?(vm) - raise Error, :_key => :do_not_inherit_match_method if self.class != Linux + raise Error, :_key => :do_not_inherit_match_method if self != Linux vm.channel.test("uname | grep 'Linux'") end # defaults the temp path to "/tmp/VBoxGuestAdditions.iso" for all Linux based systems def tmp_path @@ -42,10 +42,10 @@ # @param [Hash] opts Optional options Hash wich meight get passed to {Vagrant::Communication::SSH#execute} and firends # @yield [type, data] Takes a Block like {Vagrant::Communication::Base#execute} for realtime output of the command being executed # @yieldparam [String] type Type of the output, `:stdout`, `:stderr`, etc. # @yieldparam [String] data Data for the given output. def install(opts=nil, &block) - vm.ui.warn I18n.t("vagrant.plugins.vbguest.installer.generic_linux_installer") if self.class == Linux + vm.ui.warn I18n.t("vagrant.plugins.vbguest.errors.installer.generic_linux_installer") if self.class == Linux upload(iso_file) mount_iso(opts, &block) execute_installer(opts, &block) unmount_iso(opts, &block) end \ No newline at end of file