Skip to content

Commit 2ad68a5

Browse files
committed
Add abrd formula for v0.1.0
0 parents  commit 2ad68a5

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Formula/abrd.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
class Abrd < Formula
2+
desc "Aboard agent CLI — give AI assistants access to your Aboard HR data"
3+
homepage "https://github.com/Teamtailor/aboard-cli"
4+
version "0.1.0"
5+
license "MIT"
6+
7+
on_macos do
8+
if Hardware::CPU.arm?
9+
url "https://github.com/Teamtailor/aboard-cli/releases/download/v#{version}/abrd-v#{version}-darwin-arm64.tar.gz"
10+
sha256 "96393d3634f0791a50f7838e98fd9b8b2d68c835f7bf0f42e54e52045ab5f205"
11+
end
12+
end
13+
14+
on_linux do
15+
if Hardware::CPU.intel?
16+
url "https://github.com/Teamtailor/aboard-cli/releases/download/v#{version}/abrd-v#{version}-linux-amd64.tar.gz"
17+
sha256 "4f1357f882a479fb9f8584e53bfdf091f7205deb848cdeaac94213ea780732cb"
18+
end
19+
end
20+
21+
def install
22+
binary = Dir["abrd-*"].first
23+
bin.install binary => "abrd"
24+
end
25+
26+
test do
27+
assert_match version.to_s, shell_output("#{bin}/abrd --version")
28+
end
29+
end

0 commit comments

Comments
 (0)