From f9f30a8ce9970c1007f272a2dc35051dd6fbf64b Mon Sep 17 00:00:00 2001 From: goreleaserbot Date: Mon, 2 Dec 2024 09:26:43 -0500 Subject: [PATCH] Brew formula update for fga version v0.6.2 --- Formula/fga@0.6.2.rb | 77 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Formula/fga@0.6.2.rb diff --git a/Formula/fga@0.6.2.rb b/Formula/fga@0.6.2.rb new file mode 100644 index 0000000..09c01e0 --- /dev/null +++ b/Formula/fga@0.6.2.rb @@ -0,0 +1,77 @@ +# typed: false +# frozen_string_literal: true + +# This file was generated by GoReleaser. DO NOT EDIT. +class FgaAT062 < Formula + desc "A cross-platform CLI to interact with an OpenFGA server." + homepage "https://openfga.dev/" + version "0.6.2" + license "Apache-2.0" + + depends_on "git" + depends_on "go" => :optional + + on_macos do + on_intel do + url "https://github.com/openfga/cli/releases/download/v0.6.2/fga_0.6.2_darwin_amd64.tar.gz", using: CurlDownloadStrategy + sha256 "5f4d0ea21f121518b816e14997babbacdb195eaf58ae323c96cc706380e3a71f" + + def install + bin.install "fga" + bash_completion.install "completions/fga.bash" => "fga" + zsh_completion.install "completions/fga.zsh" => "_fga" + fish_completion.install "completions/fga.fish" + man1.install "manpages/fga.1.gz" + end + end + on_arm do + url "https://github.com/openfga/cli/releases/download/v0.6.2/fga_0.6.2_darwin_arm64.tar.gz", using: CurlDownloadStrategy + sha256 "ec63f169a145a75b1929e07d158967c10c766a96329ac7440509130a95233e97" + + def install + bin.install "fga" + bash_completion.install "completions/fga.bash" => "fga" + zsh_completion.install "completions/fga.zsh" => "_fga" + fish_completion.install "completions/fga.fish" + man1.install "manpages/fga.1.gz" + end + end + end + + on_linux do + on_intel do + if Hardware::CPU.is_64_bit? + url "https://github.com/openfga/cli/releases/download/v0.6.2/fga_0.6.2_linux_amd64.tar.gz", using: CurlDownloadStrategy + sha256 "4847b80f92eeacda0b30117547080a36465160d08266603c1043c1a33519e368" + + def install + bin.install "fga" + bash_completion.install "completions/fga.bash" => "fga" + zsh_completion.install "completions/fga.zsh" => "_fga" + fish_completion.install "completions/fga.fish" + man1.install "manpages/fga.1.gz" + end + end + end + on_arm do + if Hardware::CPU.is_64_bit? + url "https://github.com/openfga/cli/releases/download/v0.6.2/fga_0.6.2_linux_arm64.tar.gz", using: CurlDownloadStrategy + sha256 "d99c108845c40537bd6b6cab1b6018294b47b120c935c98c1d3c13ddc99c55b7" + + def install + bin.install "fga" + bash_completion.install "completions/fga.bash" => "fga" + zsh_completion.install "completions/fga.zsh" => "_fga" + fish_completion.install "completions/fga.fish" + man1.install "manpages/fga.1.gz" + end + end + end + end + + head "https://github.com/openfga/cli.git", :branch => "main" + + test do + system "#{bin}/fga version" + end +end