-
Notifications
You must be signed in to change notification settings - Fork 2
/
hvm.rb
51 lines (43 loc) · 1.44 KB
/
hvm.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Hvm < Formula
desc "An environment manager for happy path."
homepage "https://github.com/chanzuckerberg/happy"
version "0.127.4"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/chanzuckerberg/happy/releases/download/v0.127.4/hvm_0.127.4_darwin_amd64.tar.gz"
sha256 "976a2c265926f4562fba7cbbee516a5325e38c71dcb1ebcf2495fba19d556552"
def install
bin.install "hvm"
end
end
if Hardware::CPU.arm?
url "https://github.com/chanzuckerberg/happy/releases/download/v0.127.4/hvm_0.127.4_darwin_arm64.tar.gz"
sha256 "7e35e21375bf6372adbcb21ed5ef7e1786fc25b29847ebed2e4e42451b91a4fb"
def install
bin.install "hvm"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/chanzuckerberg/happy/releases/download/v0.127.4/hvm_0.127.4_linux_amd64.tar.gz"
sha256 "c4d69751acf8961306f381456f5e5f5a3184d5f5300b1af6ba07bebf31e186da"
def install
bin.install "hvm"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/chanzuckerberg/happy/releases/download/v0.127.4/hvm_0.127.4_linux_arm64.tar.gz"
sha256 "907b9f7e8b88a4c27b12eec2950299b6bd64f0fffde60094c2a2fcdeb243f363"
def install
bin.install "hvm"
end
end
end
test do
system "#{bin}/hvm"
end
end