forked from argoproj/homebrew-tap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
argocd.rb
26 lines (21 loc) · 873 Bytes
/
argocd.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This is an auto-generated file. DO NOT EDIT
class Argocd < Formula
desc "GitOps Continuous Delivery for Kubernetes"
homepage "https://argoproj.io"
url "https://github.com/argoproj/argo-cd/releases/download/v1.0.1/argocd-darwin-amd64"
sha256 "bf568447e423d730ca0325fcb718edf343ffbfa4d43ab7d7ab48868094193935"
version "1.0.1"
bottle :unneeded
def install
bin.install "argocd-darwin-amd64"
mv bin/"argocd-darwin-amd64", bin/"argocd"
# Ensure argocd is executable
FileUtils.chmod("+x","#{bin}/argocd")
# Install bash completion
output = Utils.popen_read("#{bin}/argocd completion bash")
(bash_completion/"argocd").write output
# Install zsh completion
output = Utils.popen_read("#{bin}/argocd completion zsh")
(zsh_completion/"_argocd").write output
end
end