# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class Pygmy < Formula
  desc "amazee.io's local development helper tool"
  homepage "https://github.com/pygmystack/pygmy"
  version "0.9.0"

  on_macos do
    if Hardware::CPU.arm?
      url "https://github.com/pygmystack/pygmy/releases/download/v0.9.0/pygmy_0.9.0_darwin_arm64.tar.gz"
      sha256 "0fbc28472d781e7e1171797d5ad108cbeacdfea2414484b3ecfb01610b6fbe6c"

      def install
        bin.install "pygmy"
      end
    end
    if Hardware::CPU.intel?
      url "https://github.com/pygmystack/pygmy/releases/download/v0.9.0/pygmy_0.9.0_darwin_amd64.tar.gz"
      sha256 "e99c2d5a8105408c498166c64c6cf5a7bed584e92a6dbfe8fdaca5b90706b88b"

      def install
        bin.install "pygmy"
      end
    end
  end

  on_linux do
    if Hardware::CPU.intel?
      url "https://github.com/pygmystack/pygmy/releases/download/v0.9.0/pygmy_0.9.0_linux_amd64.tar.gz"
      sha256 "4a4c479d213063dca7053dcc79ca8cf0dd8048373c7e75d8a9f91743bfb799a0"

      def install
        bin.install "pygmy"
      end
    end
    if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
      url "https://github.com/pygmystack/pygmy/releases/download/v0.9.0/pygmy_0.9.0_linux_arm64.tar.gz"
      sha256 "d9b778048cb7e222e6a7773a99c66bee3908d0ffdbc24478e94c09da8c021a99"

      def install
        bin.install "pygmy"
      end
    end
    if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
      url "https://github.com/pygmystack/pygmy/releases/download/v0.9.0/pygmy_0.9.0_linux_arm.tar.gz"
      sha256 "ced153c78d33f36a407e2b4d600b2919d4e3e36ffb088bb3e508204181e79895"

      def install
        bin.install "pygmy"
      end
    end
  end

  test do
    system "#{bin}/pygmy version"
  end
end
