-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathharbor-cli.rb
More file actions
49 lines (41 loc) · 1.52 KB
/
harbor-cli.rb
File metadata and controls
49 lines (41 loc) · 1.52 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This file was generated by Actions Bot. DO NOT EDIT.
class HarborCli < Formula
desc "Harbor CLI for interacting with Harbor registry"
homepage "https://goharbor.io"
version "0.0.18"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/goharbor/harbor-cli/releases/download/v0.0.18/harbor-cli_0.0.18_darwin_amd64.tar.gz"
sha256 "44d9e38ce108199c3c09b98726dd04e8c2f89afae04219e9192d0bcb15903050" # darwin_amd64
def install
bin.install "harbor-cli"
end
end
if Hardware::CPU.arm?
url "https://github.com/goharbor/harbor-cli/releases/download/v0.0.18/harbor-cli_0.0.18_darwin_arm64.tar.gz"
sha256 "75404b797ec94193a3043e3a40953e7322f9794c75f162e706c6689324cfd422" # darwin_arm64
def install
bin.install "harbor-cli"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/goharbor/harbor-cli/releases/download/v0.0.18/harbor-cli_0.0.18_linux_amd64.tar.gz"
sha256 "6e209079d33ed2c3a095b98d4f8b97d0469d755bb362e2c99920be5956642964" # linux_amd64
def install
bin.install "harbor-cli"
end
end
if Hardware::CPU.arm?
url "https://github.com/goharbor/harbor-cli/releases/download/v0.0.18/harbor-cli_0.0.18_linux_arm64.tar.gz"
sha256 "f37f4e9b9be81a74496800d413d1d1c39f4a9821bbd3f0f0f67591a22d918a4a" # linux_arm64
def install
bin.install "harbor-cli"
end
end
end
test do
system "#{bin}/harbor-cli", "version" # Formula test (after install)
end
end