class Overmind < Formula desc "Process manager for Procfile-based applications and tmux" homepage "https://github.com/DarthSim/overmind" url "https://github.com/DarthSim/overmind/archive/v2.3.0.tar.gz" sha256 "a9fe0efc94b72ca11003940145ca4d48a8af32e5e9593d1a53757dd2eccacbb2" license "MIT" head "https://github.com/DarthSim/overmind.git", branch: "master" bottle do sha256 cellar: :any_skip_relocation, arm64_monterey: "4841af6b8c882b52029d7c7a58bc0d5534bfb7f53f1b33b76d980f6197db954b" sha256 cellar: :any_skip_relocation, arm64_big_sur: "b96582ea0b7adb01d40b4429beaac118bb090bb856f3579a9a63c100cbc00546" sha256 cellar: :any_skip_relocation, monterey: "ad3705236fde66360596bee1567ba806420d5b215a0ce51d206679ba360583ac" sha256 cellar: :any_skip_relocation, big_sur: "5a1f67aff79d61c0ba2b46fa108ba1fdd8bf35252e897c9b81e54fa66c6d1b79" sha256 cellar: :any_skip_relocation, catalina: "281b468e00c93a48d08a2288365a86cf3c4726ce9ab26777c07e903895c503d3" sha256 cellar: :any_skip_relocation, x86_64_linux: "162e1a133b3a55c485c8149a375b442bc3e01ef1306f7f28fab381f7559225d7" end # Bump to 1.18 on the next release, if possible. depends_on "go@1.17" => :build depends_on "tmux" def install system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"overmind" prefix.install_metafiles end test do expected_message = "overmind: open ./Procfile: no such file or directory" assert_match expected_message, shell_output("#{bin}/overmind start 2>&1", 1) (testpath/"Procfile").write("test: echo 'test message'; sleep 1") expected_message = "test message" assert_match expected_message, shell_output("#{bin}/overmind start") end end