-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrol-tower.rb
36 lines (33 loc) · 1.24 KB
/
control-tower.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
33
34
35
36
class ControlTower < Formula
desc "Deploy and operate Concourse CI in a single command"
homepage "https://www.engineerbetter.com"
version "0.32.0"
license "Apache-2.0"
if OS.mac?
if RUBY_PLATFORM.include?("arm64")
url "https://github.com/EngineerBetter/control-tower/releases/download/#{version}/control-tower-darwin-arm64"
sha256 "13baaa689e9cafffa0945a329393cde0e6c8550d45d6696cf44ed669f955db02"
else
url "https://github.com/EngineerBetter/control-tower/releases/download/#{version}/control-tower-darwin-amd64"
sha256 "38d2e120cee77d55614f3a26c8505af181d64348ed69bc2764875473fac09aff"
end
elsif OS.linux?
url "https://github.com/EngineerBetter/control-tower/releases/download/#{version}/control-tower-linux-amd64"
sha256 "e2d1d6cd408005cc1eee5eddb899bee485cab367f42e53c93ac7d30ae9bfe78a"
end
def install
binary_name = "control-tower"
if OS.mac?
if RUBY_PLATFORM.include?("arm64")
bin.install "control-tower-darwin-arm64" => binary_name
else
bin.install "control-tower-darwin-amd64" => binary_name
end
elsif OS.linux?
bin.install "control-tower-linux-amd64" => binary_name
end
end
test do
system "#{bin}/control-tower", "--help"
end
end