Formula/bicep.rb (28 lines of code) (raw):

class Bicep < Formula desc "Bicep: next generation template language for Azure Resource Manager (ARM)" homepage "https://github.com/Azure/bicep" version "0.35.1" case when OS.mac? && Hardware::CPU.intel? url "https://github.com/Azure/bicep/releases/download/v0.35.1/bicep-osx-x64" sha256 "f0a61f2fe874ecb6e5cc57346cab05a32d8fc875d87a7172b6b3605337527cf5" when OS.mac? && Hardware::CPU.arm? url "https://github.com/Azure/bicep/releases/download/v0.35.1/bicep-osx-arm64" sha256 "f8d8f3e171bd7f65c086d5dcd0e9e760a86aaa315f3098982fec08c3fc8aa097" else odie "Unexpected platform!" end license "MIT" def install case when OS.mac? && Hardware::CPU.intel? bin.install "bicep-osx-x64" => "bicep" when OS.mac? && Hardware::CPU.arm? bin.install "bicep-osx-arm64" => "bicep" else odie "Unexpected platform!" end end test do end end