-
Notifications
You must be signed in to change notification settings - Fork 1
/
spacectl.rb
64 lines (57 loc) · 2.28 KB
/
spacectl.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Spacectl < Formula
desc "Spacelift client and CLI"
homepage "https://github.com/spacelift-io/spacectl"
version "1.8.0"
license "MIT"
on_macos do
on_intel do
url "https://github.com/spacelift-io/spacectl/releases/download/v1.8.0/spacectl_1.8.0_darwin_amd64.zip"
sha256 "bc8627f9a64047c2379aa5893f6d0e2b898e1e142c1c8b8b18048e3c49ecafe1"
def install
bin.install "spacectl"
bash_completion.install "completions/spacectl.bash" => "spacectl"
zsh_completion.install "completions/spacectl.zsh" => "_spacectl"
fish_completion.install "completions/spacectl.fish"
end
end
on_arm do
url "https://github.com/spacelift-io/spacectl/releases/download/v1.8.0/spacectl_1.8.0_darwin_arm64.zip"
sha256 "61f368700e37bbef1710d57c8d5cf9813cc51440b6cfc4785b466c53a1438a7a"
def install
bin.install "spacectl"
bash_completion.install "completions/spacectl.bash" => "spacectl"
zsh_completion.install "completions/spacectl.zsh" => "_spacectl"
fish_completion.install "completions/spacectl.fish"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/spacelift-io/spacectl/releases/download/v1.8.0/spacectl_1.8.0_linux_amd64.zip"
sha256 "2fb7919719368049f3b7d49d8c828933525ad660665ea6536d4acba599cd4cc7"
def install
bin.install "spacectl"
bash_completion.install "completions/spacectl.bash" => "spacectl"
zsh_completion.install "completions/spacectl.zsh" => "_spacectl"
fish_completion.install "completions/spacectl.fish"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/spacelift-io/spacectl/releases/download/v1.8.0/spacectl_1.8.0_linux_arm64.zip"
sha256 "2ea078fc0e2d94796483b7cedd317f6ddc458fd33e29e808a7e7f53bf6c7644f"
def install
bin.install "spacectl"
bash_completion.install "completions/spacectl.bash" => "spacectl"
zsh_completion.install "completions/spacectl.zsh" => "_spacectl"
fish_completion.install "completions/spacectl.fish"
end
end
end
end
end