-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspacectl.rb
64 lines (57 loc) · 2.32 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.9.0"
license "MIT"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/spacelift-io/spacectl/releases/download/v1.9.0/spacectl_1.9.0_darwin_amd64.zip"
sha256 "9e6b730e69e689072e45365473e315e0c40360aa622292e9c48699bc508c2dce"
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
if Hardware::CPU.arm?
url "https://github.com/spacelift-io/spacectl/releases/download/v1.9.0/spacectl_1.9.0_darwin_arm64.zip"
sha256 "6f9b597dd92c33436a198fc48ba4f12f0a8cee46e557ae18e57959950ae5cc36"
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
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/spacelift-io/spacectl/releases/download/v1.9.0/spacectl_1.9.0_linux_amd64.zip"
sha256 "b8ca484cc9a9225117c1f7958d59d0af8002993a0eef912a73faff97e635b918"
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
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/spacelift-io/spacectl/releases/download/v1.9.0/spacectl_1.9.0_linux_arm64.zip"
sha256 "64da07d44a17d379d57873c33e9ef8e7b0f48ab4a2ccd56a5d9672318f5a386f"
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