Readme.md in vagrant-vbguest-0.7.0.pre0 vs Readme.md in vagrant-vbguest-0.7.0.pre1

- old
+ new

@@ -2,12 +2,21 @@ *vagrant-vbguest* is a [Vagrant](http://vagrantup.com) plugin which automatically installs the host's VirtualBox Guest Additions on the guest system. ## Installation -Requires vagrant 0.9.4 or later (including 1.0) -Since vagrant v1.0.0 the preferred installation method for vagrant is using the provided packages or installers. +Requires vagrant 0.9.4 or later (including 1.0 and 1.1) + +On Vagrant 1.1.x use: + +```bash +$ vagrant plugin install vagrant-vbguest +``` + +### Vagrant 1.0 and older + +Since vagrant v1.0.0 the preferred installation method for vagrant is using the provided packages or installers. If you installed vagrant that way, you need to use vagrant's gem wrapper: ```bash $ vagrant gem install vagrant-vbguest ``` @@ -211,21 +220,25 @@ Installers take care of the whole installation process, that includes where to save the iso file inside the guest and where to mount it. ```ruby class MyInstaller < VagrantVbguest::Installers::Linux - def self.match?(vm) - super && vm.channel.test("test -d /temp") - end - # use /temp instead of /tmp def tmp_path '/temp/VBoxGuestAdditions.iso' end # use /media instead of /mnt def mount_point '/media' + end + + def install(opts=nil, &block) + communicate.sudo('my_distos_way_of_preparing_guestadditions_installation', opts, &block) + # calling `super` will run the installation + # also it takes care of uploading the right iso file into the box + # and cleaning up afterward + super end end Vagrant::Config.run do |config| config.vbguest.installer = MyInstaller