-
Notifications
You must be signed in to change notification settings - Fork 0
/
gocontentful.rb
61 lines (52 loc) · 1.61 KB
/
gocontentful.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
56
57
58
59
60
61
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Gocontentful < Formula
desc "An Contentful Entry-Reference Mapper for Go"
homepage "https://github.com/foomo/gocontentful"
version "1.1.0"
on_macos do
on_intel do
url "https://github.com/foomo/gocontentful/releases/download/v1.1.0/gocontentful_1.1.0_darwin_amd64.tar.gz"
sha256 "13d31f0985ad39e7e96e3e42e52204c299c4db2b2f40e3f50f544fdc2cb3c265"
def install
bin.install "gocontentful"
end
end
on_arm do
url "https://github.com/foomo/gocontentful/releases/download/v1.1.0/gocontentful_1.1.0_darwin_arm64.tar.gz"
sha256 "687456b4dfc8f8f24b5315d6447067eba70b5f799e9a8fe7288891927e60856c"
def install
bin.install "gocontentful"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/foomo/gocontentful/releases/download/v1.1.0/gocontentful_1.1.0_linux_amd64.tar.gz"
sha256 "29f8ebcff22096a98ee8c3a658fa8b625717ad0e13834c7a0978cf6a2563bea4"
def install
bin.install "gocontentful"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/foomo/gocontentful/releases/download/v1.1.0/gocontentful_1.1.0_linux_arm64.tar.gz"
sha256 "2f77c34b46e0de9b5fe189db4db9fd41d6a34c92ad6865e98cb30ade873655e1"
def install
bin.install "gocontentful"
end
end
end
end
def caveats
<<~EOS
gocontentful -h
EOS
end
test do
system "#{bin}/gocontentful --version"
end
end