From 94ca0e70af388a235c12b0365acfb547884a69de Mon Sep 17 00:00:00 2001 From: goreleaserbot Date: Thu, 8 Aug 2024 17:06:36 +0300 Subject: [PATCH] Brew formula update for fga version v0.5.2 --- Formula/fga@0.5.2.rb | 77 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Formula/fga@0.5.2.rb diff --git a/Formula/fga@0.5.2.rb b/Formula/fga@0.5.2.rb new file mode 100644 index 0000000..fa68631 --- /dev/null +++ b/Formula/fga@0.5.2.rb @@ -0,0 +1,77 @@ +# typed: false +# frozen_string_literal: true + +# This file was generated by GoReleaser. DO NOT EDIT. +class FgaAT052 < Formula + desc "A cross-platform CLI to interact with an OpenFGA server." + homepage "https://openfga.dev/" + version "0.5.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.5.2/fga_0.5.2_darwin_amd64.tar.gz", using: CurlDownloadStrategy + sha256 "4cc8c7ace1275f32ff8ae734f97e03ce982dded10b5cff392e831fbd29c34db5" + + 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.5.2/fga_0.5.2_darwin_arm64.tar.gz", using: CurlDownloadStrategy + sha256 "63c73559212deb4adf737c4c16ceb55020e2f0b0321cf9e8ae6891f15f9e1cab" + + 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.5.2/fga_0.5.2_linux_amd64.tar.gz", using: CurlDownloadStrategy + sha256 "8f2d4a27781702c9ea5f6267affccbde40ebf61ee9a013cb7350b643bf51a21e" + + 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.5.2/fga_0.5.2_linux_arm64.tar.gz", using: CurlDownloadStrategy + sha256 "32e2c1d9c5eddaf7a13cf0cb8c1df43efc50fdceb3622ed299d5dd1e60dbf466" + + 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