1 class Conduit < Formula
2 desc "Streams data between data stores. Kafka Connect replacement. No JVM required"
3 homepage "https://conduit.io/"
4 url "https://github.com/ConduitIO/conduit/archive/refs/tags/v0.13.1.tar.gz"
5 sha256 "929201cb59e28d0e26f442e8a9edc76105c31fb8a1e942457842e6c41d6e72ce"
7 head "https://github.com/ConduitIO/conduit.git", branch: "main"
11 regex(/^v?(\d+(?:\.\d+)+)$/i)
15 sha256 cellar: :any_skip_relocation, arm64_sequoia: "afa76727e3da6eac1abbacb894b726516fb8f66f39b87ccf362cbce81d7767d6"
16 sha256 cellar: :any_skip_relocation, arm64_sonoma: "179b499e5c1b69b5271821d0936d3672c018326a634d04bb6aef809fc1e614ed"
17 sha256 cellar: :any_skip_relocation, arm64_ventura: "d4913460f1ff221b7eade8c1a127f663bbfdf31ad0bac5e86900af3e9676cef4"
18 sha256 cellar: :any_skip_relocation, sonoma: "c7565f9198ad14561fbbf8e6c77251ccb1f1e99b0924c27ace73bab01ef4c0b8"
19 sha256 cellar: :any_skip_relocation, ventura: "457c5ad176ed11ae25272c690bd16f3af11dcc7b8658fd60425434ab2cbbbc09"
20 sha256 cellar: :any_skip_relocation, x86_64_linux: "e5b94e77696aa3da2a525528d534bdbcf02068f6df711f91cbf3d635fa4eecc6"
23 depends_on "go" => :build
24 depends_on "node" => :build
25 depends_on "yarn" => :build
28 system "make", "VERSION=#{version}"
33 assert_match version.to_s, shell_output("#{bin}/conduit --version")
35 File.open("output.txt", "w") do |file|
36 # redirect stdout to the file
38 pid = spawn bin/"conduit", "run", "--api.enabled", "true",
39 "--api.grpc.address", ":0",
40 "--api.http.address", ":0"
43 Process.kill("SIGKILL", pid)
45 assert_match "grpc API started", (testpath/"output.txt").read
46 assert_match "http API started", (testpath/"output.txt").read