-
Notifications
You must be signed in to change notification settings - Fork 0
/
velocity.rb
91 lines (71 loc) · 3.02 KB
/
velocity.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Velocity < Formula
desc ""
homepage "https://velocity.tech"
version "0.77.1"
on_macos do
on_intel do
url "https://releases.velocity.tech/velocity/v0.77.1/velocity_Darwin_x86_64.tar.gz"
sha256 "4fb718d09c0e834ce1ebc5ffa4551b839faebca4e872e0e94095948ae3e01f20"
def install
bin.install "velocity"
system bin/"velocity completion bash > bash_completion.bash"
bash_completion.install "bash_completion.bash" => "velocity"
system bin/"velocity completion zsh > zsh_completion.zsh"
zsh_completion.install "zsh_completion.zsh" => "_velocity"
system bin/"velocity completion fish > fish_completion.fish"
fish_completion.install "fish_completion.fish" => "velocity.fish"
end
end
on_arm do
url "https://releases.velocity.tech/velocity/v0.77.1/velocity_Darwin_arm64.tar.gz"
sha256 "a41d0e50b4a1cecf92c6b983ea1a5edcd38e5eacc88cb293d727684df3798fe2"
def install
bin.install "velocity"
system bin/"velocity completion bash > bash_completion.bash"
bash_completion.install "bash_completion.bash" => "velocity"
system bin/"velocity completion zsh > zsh_completion.zsh"
zsh_completion.install "zsh_completion.zsh" => "_velocity"
system bin/"velocity completion fish > fish_completion.fish"
fish_completion.install "fish_completion.fish" => "velocity.fish"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://releases.velocity.tech/velocity/v0.77.1/velocity_Linux_x86_64.tar.gz"
sha256 "e4a2036e3228cadca3821a01384272819bca575d22b85651a9c5a89e96569fee"
def install
bin.install "velocity"
system bin/"velocity completion bash > bash_completion.bash"
bash_completion.install "bash_completion.bash" => "velocity"
system bin/"velocity completion zsh > zsh_completion.zsh"
zsh_completion.install "zsh_completion.zsh" => "_velocity"
system bin/"velocity completion fish > fish_completion.fish"
fish_completion.install "fish_completion.fish" => "velocity.fish"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://releases.velocity.tech/velocity/v0.77.1/velocity_Linux_arm64.tar.gz"
sha256 "50c7df2030b77784c6f502e871748d6fb682ea79d2862e63d45d3cca7a44f859"
def install
bin.install "velocity"
system bin/"velocity completion bash > bash_completion.bash"
bash_completion.install "bash_completion.bash" => "velocity"
system bin/"velocity completion zsh > zsh_completion.zsh"
zsh_completion.install "zsh_completion.zsh" => "_velocity"
system bin/"velocity completion fish > fish_completion.fish"
fish_completion.install "fish_completion.fish" => "velocity.fish"
end
end
end
end
test do
system "#{bin}/velocity version"
end
end