cask "session-manager-plugin" do arch arm: "_arm64" version "1.2.688.0" sha256 arm: "0bf2170b939179ad5c1c34488791ece0dfaac71661db14c4b8155f9c59916817", intel: "f766ed105373ac0f7829054a75868e299ec57014e55dcd1fcf2abbd34ee3d61f" url "https://session-manager-downloads.s3.amazonaws.com/plugin/#{version}/mac#{arch}/session-manager-plugin.pkg", verified: "session-manager-downloads.s3.amazonaws.com/plugin/" name "Session Manager Plugin for the AWS CLI" desc "Plugin for AWS CLI to start and end sessions that connect to managed instances" homepage "https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html" livecheck do url "https://docs.aws.amazon.com/systems-manager/latest/userguide/plugin-version-history.html" regex(%r{(\d+(?:\.\d+)+)}i) end pkg "session-manager-plugin.pkg" binary "/usr/local/sessionmanagerplugin/bin/session-manager-plugin" uninstall pkgutil: "session-manager-plugin" zap trash: "/Library/LaunchDaemons/SessionManagerPlugin.plist" end