Skip to content

Commit

Permalink
Brew formula update for cli version v0.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
goreleaserbot committed Feb 1, 2022
1 parent 274d200 commit c152bf4
Showing 1 changed file with 57 additions and 20 deletions.
77 changes: 57 additions & 20 deletions Formula/tektoncd-cli.rb
Original file line number Diff line number Diff line change
@@ -1,35 +1,72 @@
# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class TektoncdCli < Formula
desc "Tekton CLI - The command line interface for interacting with Tekton"
homepage "https://github.com/tektoncd/cli"
version "0.21.0"
bottle :unneeded
version "0.22.0"

if OS.mac?
url "https://github.com/tektoncd/cli/releases/download/v0.21.0/tkn_0.21.0_Darwin_x86_64.tar.gz"
sha256 "927171af0df17b52bf5b4b6012d9114ec323463f17449b4958b8f6989fd9519b"
elsif OS.linux?
on_macos do
if Hardware::CPU.intel?
url "https://github.com/tektoncd/cli/releases/download/v0.21.0/tkn_0.21.0_Linux_x86_64.tar.gz"
sha256 "2158a202e4b04ff73e6427b565355c7bfc8cbe16dc7058a0414fb16e7b97008c"
url "https://github.com/tektoncd/cli/releases/download/v0.22.0/tkn_0.22.0_Darwin_x86_64.tar.gz"
sha256 "c3db2e4a55a7c1d06e155f2a4857b7102a92988d860bae88ccf3b97e9cc18749"

def install
bin.install_symlink "tkn" => "kubectl-tkn"
bin.install "tkn" => "tkn"
output = Utils.popen_read("SHELL=bash #{bin}/tkn completion bash")
(bash_completion/"tkn").write output
output = Utils.popen_read("SHELL=zsh #{bin}/tkn completion zsh")
(zsh_completion/"_tkn").write output
prefix.install_metafiles
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/tektoncd/cli/releases/download/v0.21.0/tkn_0.21.0_Linux_arm64.tar.gz"
sha256 "d774c801cd993020afd60f1c6c417d7d05d29d9a24ede7460506769490366cab"
else
url "https://github.com/tektoncd/cli/releases/download/v0.22.0/tkn_0.22.0_Darwin_arm64.tar.gz"
sha256 "23fcd3bb6ca97d6296bfa143726d38cfcc8a2a0282d85f309e38765aee2eacd2"

def install
bin.install_symlink "tkn" => "kubectl-tkn"
bin.install "tkn" => "tkn"
output = Utils.popen_read("SHELL=bash #{bin}/tkn completion bash")
(bash_completion/"tkn").write output
output = Utils.popen_read("SHELL=zsh #{bin}/tkn completion zsh")
(zsh_completion/"_tkn").write output
prefix.install_metafiles
end
end
end

def install
bin.install_symlink "tkn" => "kubectl-tkn"
bin.install "tkn" => "tkn"
output = Utils.popen_read("SHELL=bash #{bin}/tkn completion bash")
(bash_completion/"tkn").write output
output = Utils.popen_read("SHELL=zsh #{bin}/tkn completion zsh")
(zsh_completion/"_tkn").write output
prefix.install_metafiles
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/tektoncd/cli/releases/download/v0.22.0/tkn_0.22.0_Linux_arm64.tar.gz"
sha256 "01eef5055ea63671bcb3efe1179c579a6de18d1ef00137db24d11949eaf1b4ed"

def install
bin.install_symlink "tkn" => "kubectl-tkn"
bin.install "tkn" => "tkn"
output = Utils.popen_read("SHELL=bash #{bin}/tkn completion bash")
(bash_completion/"tkn").write output
output = Utils.popen_read("SHELL=zsh #{bin}/tkn completion zsh")
(zsh_completion/"_tkn").write output
prefix.install_metafiles
end
end
if Hardware::CPU.intel?
url "https://github.com/tektoncd/cli/releases/download/v0.22.0/tkn_0.22.0_Linux_x86_64.tar.gz"
sha256 "3162616ed2a7d42af685a2ade7f248c751609d102b00b5839b4e70e29947fc74"

def install
bin.install_symlink "tkn" => "kubectl-tkn"
bin.install "tkn" => "tkn"
output = Utils.popen_read("SHELL=bash #{bin}/tkn completion bash")
(bash_completion/"tkn").write output
output = Utils.popen_read("SHELL=zsh #{bin}/tkn completion zsh")
(zsh_completion/"_tkn").write output
prefix.install_metafiles
end
end
end

test do
Expand Down

0 comments on commit c152bf4

Please sign in to comment.