-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgram.rb
More file actions
50 lines (44 loc) · 1.52 KB
/
Copy pathgram.rb
File metadata and controls
50 lines (44 loc) · 1.52 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
50
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Gram < Formula
desc "The Gram CLI for interacting with the Gram Platform"
homepage "https://app.getgram.ai"
version "0.16.0"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/speakeasy-api/gram/releases/download/cli@0.16.0/gram_darwin_amd64.zip"
sha256 "6312a757e7ea29e875f3746a6b0ec3cf9121f2497bc966323891679d484ee607"
define_method(:install) do
bin.install "gram"
end
end
if Hardware::CPU.arm?
url "https://github.com/speakeasy-api/gram/releases/download/cli@0.16.0/gram_darwin_arm64.zip"
sha256 "e88792a19508ab1979352eb9b74bc20c98f448a1c2fabe3d8329d05298086b17"
define_method(:install) do
bin.install "gram"
end
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/speakeasy-api/gram/releases/download/cli@0.16.0/gram_linux_amd64.zip"
sha256 "1440c762efc128c22b29aa57039cc88d9a55b30bee80d1c9e2c55f55caa935bd"
define_method(:install) do
bin.install "gram"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/speakeasy-api/gram/releases/download/cli@0.16.0/gram_linux_arm64.zip"
sha256 "d30b5d4072b109f14190fe8baabb111b14f5c4b4470d547ad41dcd69aad8dd2d"
define_method(:install) do
bin.install "gram"
end
end
end
test do
system "#{bin}/gram --version"
end
end