-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtilt.rb
126 lines (102 loc) · 4.15 KB
/
tilt.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Tilt < Formula
desc "A dev environment as code for microservice apps"
homepage "https://tilt.dev/"
version "0.34.0"
on_macos do
on_intel do
url "https://github.com/tilt-dev/tilt/releases/download/v0.34.0/tilt.0.34.0.mac.x86_64.tar.gz"
sha256 "6e7ebc8abd930f60e7cf6ecb281e04e3371a6bcc58cc960f00787c2da396be2e"
def install
bin.install "tilt"
# Install bash completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "bash")
(bash_completion/"tilt").write output
# Install zsh completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "zsh")
(zsh_completion/"_tilt").write output
# Install fish completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "fish")
(fish_completion/"tilt.fish").write output
end
end
on_arm do
url "https://github.com/tilt-dev/tilt/releases/download/v0.34.0/tilt.0.34.0.mac.arm64.tar.gz"
sha256 "75bf3892c8e7e553699c08a32ccf5f4aa23d921306c294699bcbecc6e4d7524b"
def install
bin.install "tilt"
# Install bash completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "bash")
(bash_completion/"tilt").write output
# Install zsh completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "zsh")
(zsh_completion/"_tilt").write output
# Install fish completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "fish")
(fish_completion/"tilt.fish").write output
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/tilt-dev/tilt/releases/download/v0.34.0/tilt.0.34.0.linux.x86_64.tar.gz"
sha256 "d8c3ccd6bfb317a1dc01723cbc81c706c0eaf87f87cba87e0cb53da57b8f4119"
def install
bin.install "tilt"
# Install bash completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "bash")
(bash_completion/"tilt").write output
# Install zsh completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "zsh")
(zsh_completion/"_tilt").write output
# Install fish completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "fish")
(fish_completion/"tilt.fish").write output
end
end
end
on_arm do
if !Hardware::CPU.is_64_bit?
url "https://github.com/tilt-dev/tilt/releases/download/v0.34.0/tilt.0.34.0.linux.arm.tar.gz"
sha256 "c5dedc204858c5ea725404ac9081d8720d8c1ec23a320783649af3069935bc85"
def install
bin.install "tilt"
# Install bash completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "bash")
(bash_completion/"tilt").write output
# Install zsh completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "zsh")
(zsh_completion/"_tilt").write output
# Install fish completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "fish")
(fish_completion/"tilt.fish").write output
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/tilt-dev/tilt/releases/download/v0.34.0/tilt.0.34.0.linux.arm64.tar.gz"
sha256 "f78d6d51525e635f13f678bcec1daf84c280825bf4d62e8544d9a3bb8fb8f3f6"
def install
bin.install "tilt"
# Install bash completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "bash")
(bash_completion/"tilt").write output
# Install zsh completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "zsh")
(zsh_completion/"_tilt").write output
# Install fish completion
output = Utils.safe_popen_read("#{bin}/tilt", "completion", "fish")
(fish_completion/"tilt.fish").write output
end
end
end
end
test do
system "#{bin}/tilt version"
system "#{bin}/tilt verify-install"
end
end