File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments