homebrew-core/Formula/overmind.rb
2017-08-11 10:53:35 +02:00

31 lines
1.3 KiB
Ruby

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/v1.0.6.tar.gz"
sha256 "71f089d23921751b8449e526a6ec94dcd76bc8941af13e859a71d324c8d00020"
head "https://github.com/DarthSim/overmind.git"
bottle do
cellar :any_skip_relocation
sha256 "163c53d8701033b5bf0620a12885a6ab0fe0a6aead76b860e9d2eb875d071e00" => :sierra
sha256 "206f6923ac67519eb0ca053b2f384492051c68f6735836f02b1c405451a8b03e" => :el_capitan
sha256 "967c9715377837251936301e42a332bd752a591aa9bdcf8f9cffeaff31572319" => :yosemite
end
depends_on "go" => :build
depends_on "tmux"
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/DarthSim/overmind").install buildpath.children
system "go", "build", "-o", "#{bin}/overmind", "-v", "github.com/DarthSim/overmind"
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'")
expected_message = "inappropriate ioctl for device"
assert_match expected_message, shell_output("#{bin}/overmind start")
end
end