-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuffalo.rb
55 lines (47 loc) · 1.64 KB
/
buffalo.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
52
53
54
55
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Buffalo < Formula
desc ""
homepage ""
version "0.18.14"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/gobuffalo/cli/releases/download/v0.18.14/buffalo_0.18.14_Darwin_arm64.tar.gz"
sha256 "d739d74ac5746079e75e331f9cc43017aabfc992c7d79486615c1df53dc2aa58"
def install
bin.install "buffalo"
end
end
if Hardware::CPU.intel?
url "https://github.com/gobuffalo/cli/releases/download/v0.18.14/buffalo_0.18.14_Darwin_x86_64.tar.gz"
sha256 "719f1e40a2c1bdfbe366605c9b791b31c0556715a6d0eb1b847f4a5d94cabbf8"
def install
bin.install "buffalo"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/gobuffalo/cli/releases/download/v0.18.14/buffalo_0.18.14_Linux_x86_64.tar.gz"
sha256 "7555f4027a307449fac0b6ff67fc8ecd9176fc8d2242da7405f13b8498b6beb4"
def install
bin.install "buffalo"
end
end
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://github.com/gobuffalo/cli/releases/download/v0.18.14/buffalo_0.18.14_Linux_armv6.tar.gz"
sha256 "280bac03efa7cedb043984aac78dc6e7f73010a25299a3a77085a9d8203b8514"
def install
bin.install "buffalo"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/gobuffalo/cli/releases/download/v0.18.14/buffalo_0.18.14_Linux_arm64.tar.gz"
sha256 "89acef877cb5860f581808d71576b6a9df2bda26d80373c07186bd7bf2e8dce7"
def install
bin.install "buffalo"
end
end
end
end