forked from argoproj/homebrew-tap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
argo.rb
25 lines (20 loc) · 839 Bytes
/
argo.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
class Argo < Formula
desc "Get stuff done with container-native workflows for Kubernetes."
homepage "https://argoproj.io"
url "https://github.com/argoproj/argo/releases/download/v2.2.1/argo-darwin-amd64"
sha256 "41239e4a4bb1d45ade51fe2f68ad9697f7368bab50abac8e5aca53e8a9564444"
version "2.2.1"
bottle :unneeded
def install
bin.install "argo-darwin-amd64"
mv bin/"argo-darwin-amd64", bin/"argo"
# Ensure argo is executable
FileUtils.chmod("+x","#{bin}/argo")
# Install bash completion
output = Utils.popen_read("#{bin}/argo completion bash")
(bash_completion/"argo").write output
# Install zsh completion
output = Utils.popen_read("#{bin}/argo completion zsh")
(zsh_completion/"_argo").write output
end
end