-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdsctl.rb
66 lines (58 loc) · 2.47 KB
/
dsctl.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
require_relative "github_private_repository_release_download_strategy"
class Dsctl < Formula
desc ""
homepage ""
version "0.6.2"
depends_on "kubectl"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/digitalservicebund/dsctl/releases/download/v0.6.2/dsctl_Darwin_x86_64.tar.gz", using: GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "519dcd356f09521ecce6aff03101835c973c772d0f713753bba179723c5335e3"
def install
bin.install "dsctl"
bash_completion.install "completions/dsctl.bash" => "dsctl"
fish_completion.install "completions/dsctl.fish"
zsh_completion.install "completions/dsctl.zsh" => "_dsctl"
end
end
if Hardware::CPU.arm?
url "https://github.com/digitalservicebund/dsctl/releases/download/v0.6.2/dsctl_Darwin_arm64.tar.gz", using: GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "2e455d2a42c8dffc3c0fbeb5f96fc0c349941a9e4dc892f522380c2e92ea28b5"
def install
bin.install "dsctl"
bash_completion.install "completions/dsctl.bash" => "dsctl"
fish_completion.install "completions/dsctl.fish"
zsh_completion.install "completions/dsctl.zsh" => "_dsctl"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/digitalservicebund/dsctl/releases/download/v0.6.2/dsctl_Linux_x86_64.tar.gz", using: GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "e617edb4379d9e029f0ad6f55b01245304ee481518053d88da72347ec63ff68c"
def install
bin.install "dsctl"
bash_completion.install "completions/dsctl.bash" => "dsctl"
fish_completion.install "completions/dsctl.fish"
zsh_completion.install "completions/dsctl.zsh" => "_dsctl"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/digitalservicebund/dsctl/releases/download/v0.6.2/dsctl_Linux_arm64.tar.gz", using: GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "58aa08fb6c0366a3fb8de14b87a421f357997d2d8e81a92e2889933fb02d6bb0"
def install
bin.install "dsctl"
bash_completion.install "completions/dsctl.bash" => "dsctl"
fish_completion.install "completions/dsctl.fish"
zsh_completion.install "completions/dsctl.zsh" => "_dsctl"
end
end
end
end
end