forked from statping/homebrew-statping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
formula
30 lines (28 loc) · 911 Bytes
/
formula
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
class Statping < Formula
desc "Track and monitor your websites and applications uptime"
homepage "https://github.com/statping/statping"
version "$VERSION"
if OS.mac?
if Hardware::CPU.is_64_bit?
url "https://github.com/statping/statping/releases/download/v$VERSION/statping-darwin-amd64.tar.gz"
sha256 "$OSX64"
else
url "https://github.com/statping/statping/releases/download/v$VERSION/statping-darwin-386.tar.gz"
sha256 "$OSX32"
end
elsif OS.linux?
if Hardware::CPU.is_64_bit?
url "https://github.com/statping/statping/releases/download/v$VERSION/statping-linux-amd64.tar.gz"
sha256 "$LIN64"
else
url "https://github.com/statping/statping/releases/download/v$VERSION/statping-linux-386.tar.gz"
sha256 "$LIN32"
end
end
def install
bin.install "statping"
end
test do
system "#{bin}/statping", "version"
end
end