Repository navigation
Expand file tree
/
Copy pathom.rb
More file actions
49 lines (43 loc) · 1.41 KB
/
Copy pathom.rb
File metadata and controls
49 lines (43 loc) · 1.41 KB
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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Om < Formula
desc ""
homepage ""
version "7.22.2"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/pivotal-cf/om/releases/download/7.22.2/om-darwin-amd64-7.22.2.tar.gz"
sha256 "5f2be2aeeee9bd219da4e8cfa6e3738168cf7658169aaf42ae1a70fe7fee67d2"
define_method(:install) do
bin.install "om"
end
end
if Hardware::CPU.arm?
url "https://github.com/pivotal-cf/om/releases/download/7.22.2/om-darwin-arm64-7.22.2.tar.gz"
sha256 "825c4403f00289ab9e7e10c0e11abfe64188f75d73eef91d3bc7b202feeee0e5"
define_method(:install) do
bin.install "om"
end
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/pivotal-cf/om/releases/download/7.22.2/om-linux-amd64-7.22.2.tar.gz"
sha256 "967e6258e80019931a1cd05eb4339c0669c2f1660a3b8c50393164fa78fefb13"
define_method(:install) do
bin.install "om"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/pivotal-cf/om/releases/download/7.22.2/om-linux-arm64-7.22.2.tar.gz"
sha256 "87f528984ce802c4e0a85fc38fa7e6918f8c505b35d09f19fdbc4de8ae038546"
define_method(:install) do
bin.install "om"
end
end
end
test do
system "#{bin}/om --version"
end
end