diff --git a/Formula/amock.rb b/Formula/amock.rb new file mode 100644 index 0000000..67af05e --- /dev/null +++ b/Formula/amock.rb @@ -0,0 +1,43 @@ +# typed: false +# frozen_string_literal: true + +# This file was generated by GoReleaser. DO NOT EDIT. +class Amock < Formula + desc "A simple mock server for REST APIs." + homepage "https://github.com/matronator/amock" + version "0.1.1" + license "MIT" + + depends_on "git" + depends_on "go" + + on_macos do + if Hardware::CPU.intel? + url "https://github.com/matronator/amock/releases/download/v0.1.1/amock_Darwin_x86_64.tar.gz" + sha256 "364736c59026dd755f4a00b1baac1f6e6b867b185f128da8de6f68ad7027c5cd" + + def install + bin.install "amock" + end + end + if Hardware::CPU.arm? + url "https://github.com/matronator/amock/releases/download/v0.1.1/amock_Darwin_arm64.tar.gz" + sha256 "5d3e0c3404e54be93ae4f4500b99226ab0e683c6b7f19bcc40f12d5f95eee521" + + def install + bin.install "amock" + end + end + end + + on_linux do + if Hardware::CPU.intel? + url "https://github.com/matronator/amock/releases/download/v0.1.1/amock_Linux_x86_64.tar.gz" + sha256 "38ed539f59c47000c48c1431c6740c9a8c2cd2a00fb34c857ff1896c4b8a5b45" + + def install + bin.install "amock" + end + end + end +end