Sha256: b18075cea9e908734a610a55c73c204e7f6c3634765abe36b344a9bb77e40e4b

Contents?: true

Size: 747 Bytes

Versions: 11

Compression:

Stored size: 747 Bytes

Contents

execute "uninstall Vagrant" do
  # This is the recommended way to uninstall Vagrant on Mac OS X:
  # https://docs.vagrantup.com/v2/installation/uninstallation.html
  command <<-CMD
    rm -rf /Applications/Vagrant /usr/bin/vagrant &&
    pkgutil --forget com.vagrant.vagrant
  CMD
  not_if {
    # Do not uninstall if Vagrant isn't installed.
    # Do not uninstall if there is no specified version,
    # or if the version requested matches the one installed.
    ver = node['vagrant']['version']
    !File.exists?('/usr/bin/vagrant') || !ver || `vagrant --version`[ver]
  }
end

dmg_package "Vagrant" do
  source node['vagrant']['url']
  checksum node['vagrant']['checksum']
  type "pkg"
  package_id "com.vagrant.vagrant"
  action :install
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
madscience-0.0.16 cookbooks/vagrant/recipes/mac_os_x.rb
madscience-0.0.15 cookbooks/vagrant/recipes/mac_os_x.rb
madscience-0.0.14 cookbooks/vagrant/recipes/mac_os_x.rb
madscience-0.0.13 cookbooks/vagrant/recipes/mac_os_x.rb
madscience-0.0.11 cookbooks/vagrant/recipes/mac_os_x.rb
madscience-0.0.10 cookbooks/vagrant/recipes/mac_os_x.rb
madscience-0.0.9 cookbooks/vagrant/recipes/mac_os_x.rb
madscience-0.0.8 cookbooks/vagrant/recipes/mac_os_x.rb
madscience-0.0.7 cookbooks/vagrant/recipes/mac_os_x.rb
madscience-0.0.6 cookbooks/vagrant/recipes/mac_os_x.rb
madscience-0.0.5 cookbooks/vagrant/recipes/mac_os_x.rb