Skip to content

Commit 075b9d6

Browse files
authored
Merge pull request #202748 from steveh/add/runitor
runitor 1.3.0 (new formula)
2 parents fb76726 + 7016c45 commit 075b9d6

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2712,6 +2712,7 @@ ruff
27122712
ruff-lsp
27132713
rune
27142714
runit
2715+
runitor
27152716
rure
27162717
rush
27172718
rush-parallel

Formula/r/runitor.rb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
class Runitor < Formula
2+
desc "Command runner with healthchecks.io integration"
3+
homepage "https://github.com/bdd/runitor"
4+
url "https://github.com/bdd/runitor/archive/refs/tags/v1.3.0.tar.gz"
5+
sha256 "d654d4fb55b2adee445d2160ec937529f9a052220554a46874a8a5c64c52be06"
6+
license "0BSD"
7+
head "https://github.com/bdd/runitor.git", branch: "main"
8+
9+
livecheck do
10+
url :stable
11+
regex(/^v?(\d+(?:\.\d+)+)$/i)
12+
end
13+
14+
bottle do
15+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "862b3af6b1b84bd87aad4f08290a459ab3bd59d59a2f9fd4730da8b1e3d63060"
16+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "862b3af6b1b84bd87aad4f08290a459ab3bd59d59a2f9fd4730da8b1e3d63060"
17+
sha256 cellar: :any_skip_relocation, arm64_ventura: "862b3af6b1b84bd87aad4f08290a459ab3bd59d59a2f9fd4730da8b1e3d63060"
18+
sha256 cellar: :any_skip_relocation, sonoma: "98bfedbbce4c27d2fe8166696b4d077b0f2419f23aa34218252db328d874e84b"
19+
sha256 cellar: :any_skip_relocation, ventura: "98bfedbbce4c27d2fe8166696b4d077b0f2419f23aa34218252db328d874e84b"
20+
sha256 cellar: :any_skip_relocation, x86_64_linux: "2b21a8bf5896b78e2347f111c7922b092685ee4f18c1d91d189059863cf9fe49"
21+
end
22+
23+
depends_on "go" => :build
24+
25+
def install
26+
system "go", "build", *std_go_args(ldflags: "-s -w -X main.Version=#{version}"), "./cmd/runitor"
27+
end
28+
29+
test do
30+
output = shell_output("#{bin}/runitor -uuid 00000000-0000-0000-0000-000000000000 true 2>&1")
31+
assert_match "error response: 400 Bad Request", output
32+
assert_equal "runitor #{version}", shell_output("#{bin}/runitor -version").strip
33+
end
34+
end

0 commit comments

Comments
 (0)