-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathredpanda.rb
73 lines (59 loc) · 2.36 KB
/
redpanda.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
# typed: false
# frozen_string_literal: true
# This file was generated from a template file redpanda.rb.tmpl. DO NOT EDIT.
class Redpanda < Formula
desc "Redpanda CLI & toolbox"
homepage "https://redpanda.com"
version "24.3.5"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/redpanda-data/redpanda/releases/download/v24.3.5/rpk-darwin-amd64.zip"
sha256 "c499a0d55983d9326b8354289fe483cf93ee2363b5210752bb21c1b79eb15d33"
def install
bin.install "rpk"
generate_completions_from_executable(bin/"rpk", "generate", "shell-completion", base_name: "rpk")
end
end
if Hardware::CPU.arm?
url "https://github.com/redpanda-data/redpanda/releases/download/v24.3.5/rpk-darwin-arm64.zip"
sha256 "3da247fe9e30065cf1e974d1c864433be83fc492f081e27a6b34dabc8b854107"
def install
bin.install "rpk"
generate_completions_from_executable(bin/"rpk", "generate", "shell-completion", base_name: "rpk")
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/redpanda-data/redpanda/releases/download/v24.3.5/rpk-linux-arm64.zip"
sha256 "c23bc094bd243aac61eafc7299f015d6770d04cc8ca27f9099a3f6a123dcf8ee"
def install
bin.install "rpk"
generate_completions_from_executable(bin/"rpk", "generate", "shell-completion", base_name: "rpk")
end
end
if Hardware::CPU.intel?
url "https://github.com/redpanda-data/redpanda/releases/download/v24.3.5/rpk-linux-amd64.zip"
sha256 "711df3919725793f55af325fef5799dfbdacee38baa1c0bd15ca0f0354944bb5"
def install
bin.install "rpk"
generate_completions_from_executable(bin/"rpk", "generate", "shell-completion", base_name: "rpk")
end
end
end
def caveats
<<~EOS
Redpanda Keeper (rpk) is Redpanda's command line interface (CLI)
utility. The rpk commands let you configure, manage, and tune
Redpanda clusters. They also let you manage topics, groups,
and access control lists (ACLs).
Start a three-node docker cluster locally:
rpk container start -n 3
Interact with the cluster using commands like:
rpk topic list
When done, stop and delete the docker cluster:
rpk container purge
For more examples and guides, visit: https://docs.redpanda.com
EOS
end
end