# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class KyvernoJson < Formula
  desc "Kyverno for any JSON-compatible payload."
  homepage "https://kyverno.github.io/kyverno-json"
  version "0.0.3"

  on_macos do
    on_intel do
      url "https://github.com/kyverno/kyverno-json/releases/download/v0.0.3/kyverno-json_darwin_amd64.tar.gz"
      sha256 "7f08f3d9f3d1d7d600c851441f42e1026c71c68c1af421817df8993a6af95409"

      def install
        bin.install "kyverno-json"
      end
    end
    on_arm do
      url "https://github.com/kyverno/kyverno-json/releases/download/v0.0.3/kyverno-json_darwin_arm64.tar.gz"
      sha256 "308bfb39133c6f5c94173f9ebe6d2375fc14110b6c7d19fd89d3fe35a910655e"

      def install
        bin.install "kyverno-json"
      end
    end
  end

  on_linux do
    on_intel do
      if Hardware::CPU.is_64_bit?
        url "https://github.com/kyverno/kyverno-json/releases/download/v0.0.3/kyverno-json_linux_amd64.tar.gz"
        sha256 "5c82ba8cb4e91748cee0910d9b3ce0eba7df722a025f85a7b024064cda16fde7"

        def install
          bin.install "kyverno-json"
        end
      end
    end
    on_arm do
      if Hardware::CPU.is_64_bit?
        url "https://github.com/kyverno/kyverno-json/releases/download/v0.0.3/kyverno-json_linux_arm64.tar.gz"
        sha256 "e85723d9a37bbe328307f39f1db9253732ee1c56c5babca6a43e7f1b0b99dc1b"

        def install
          bin.install "kyverno-json"
        end
      end
    end
  end
end
