-
Notifications
You must be signed in to change notification settings - Fork 9
/
git-duet.rb
32 lines (28 loc) · 1.07 KB
/
git-duet.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
27
28
29
30
31
32
class GitDuet < Formula
desc "Pairing tool for Git"
homepage "https://github.com/git-duet/git-duet"
version "0.10.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/git-duet/git-duet/releases/download/0.10.0/darwin_amd64.tar.gz"
sha256 "fbc42f6388dbccb7f080992241e03de4c61bf4e2fec0fa875f5e8b4f403788dd"
elsif Hardware::CPU.arm?
url "https://github.com/git-duet/git-duet/releases/download/0.10.0/darwin_arm64.tar.gz"
sha256 "edf84e298029571b5f377993abb50d3c553cdb953cc3ff1acf136802d5e40165"
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/git-duet/git-duet/releases/download/0.10.0/linux_amd64.tar.gz"
sha256 "c6db0838dddbb76604bdf02dc086dd0fb105096b4b468438a16cf4bcb40ad6f0"
end
end
def install
%w[git-duet git-duet-commit git-duet-revert git-duet-install-hook git-duet-merge git-duet-pre-commit git-duet-post-commit git-duet-prepare-commit-msg git-solo git-as].each do |exe|
bin.install exe
end
end
test do
assert_match /#{version.to_s}/, `git duet -v`.chomp
end
end