# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class Chainsaw < Formula
  desc "Declarative Kubernetes end-to-end testing."
  homepage "https://kyverno.github.io/chainsaw"
  version "0.2.13"

  on_macos do
    if Hardware::CPU.intel?
      url "https://github.com/kyverno/chainsaw/releases/download/v0.2.13/chainsaw_darwin_amd64.tar.gz"
      sha256 "265ff7cd8ff45295da91de3e1f31ebc4552e2b389bd5af137214d82ee99bbc2a"

      def install
        bin.install "chainsaw"
      end
    end
    if Hardware::CPU.arm?
      url "https://github.com/kyverno/chainsaw/releases/download/v0.2.13/chainsaw_darwin_arm64.tar.gz"
      sha256 "45ce392cece57a7db28760d5c73243acd59090805eb013a304e4ac9e52217092"

      def install
        bin.install "chainsaw"
      end
    end
  end

  on_linux do
    if Hardware::CPU.intel? and Hardware::CPU.is_64_bit?
      url "https://github.com/kyverno/chainsaw/releases/download/v0.2.13/chainsaw_linux_amd64.tar.gz"
      sha256 "6c8d4cdccacbea7100a8354893b3176d874eecfe70c930fbe0496b7967d61ca4"
      def install
        bin.install "chainsaw"
      end
    end
    if Hardware::CPU.arm? and Hardware::CPU.is_64_bit?
      url "https://github.com/kyverno/chainsaw/releases/download/v0.2.13/chainsaw_linux_arm64.tar.gz"
      sha256 "f0bbbd1d4b6090bec8ad82305251098b7e9e5069dc67b328d68aeb57dc2974f7"
      def install
        bin.install "chainsaw"
      end
    end
  end
end
