excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / v / vagrant.rb
blob545994082ea56daf36b50632fe14744494838110
1 cask "vagrant" do
2   arch arm: "arm64", intel: "amd64"
4   version "2.4.3"
5   sha256 arm:   "3cfe992d505271620da797cd1c43648dc9cf546c3d90f7c4d45f04741d29803f",
6          intel: "3cfe992d505271620da797cd1c43648dc9cf546c3d90f7c4d45f04741d29803f"
8   url "https://releases.hashicorp.com/vagrant/#{version}/vagrant_#{version}_darwin_#{arch}.dmg",
9       verified: "hashicorp.com/vagrant/"
10   name "Vagrant"
11   desc "Development environment"
12   homepage "https://www.vagrantup.com/"
14   livecheck do
15     url "https://developer.hashicorp.com/vagrant/install"
16     regex(/href=[^ >]*?vagrant[._-]v?(\d+(?:\.\d+)+)(?:[._-]darwin)?(?:[._-]#{arch})?\.dmg/i)
17   end
19   pkg "vagrant.pkg"
21   uninstall script:  {
22               executable: "uninstall.tool",
23               input:      ["Yes"],
24               sudo:       true,
25             },
26             pkgutil: "com.vagrant.vagrant"
28   zap trash: "~/.vagrant.d"
29 end