2017-05-30 09:06:26 +00:00
|
|
|
class Overmind < Formula
|
|
|
|
desc "Process manager for Procfile-based applications and tmux"
|
|
|
|
homepage "https://github.com/DarthSim/overmind"
|
2017-08-11 08:14:49 +00:00
|
|
|
url "https://github.com/DarthSim/overmind/archive/v1.0.6.tar.gz"
|
|
|
|
sha256 "71f089d23921751b8449e526a6ec94dcd76bc8941af13e859a71d324c8d00020"
|
2017-05-30 09:06:26 +00:00
|
|
|
head "https://github.com/DarthSim/overmind.git"
|
|
|
|
|
2017-06-12 17:16:32 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-07-08 20:26:10 +00:00
|
|
|
sha256 "15428b47b9e686d1cefc38c1e73c7690c37a949ba0ecd7787b10fbf0ef46cc08" => :sierra
|
|
|
|
sha256 "bc7ae8f1cc5c8263e4096f55448003c508ba0f664002ff7d41a274d8013ed11a" => :el_capitan
|
|
|
|
sha256 "78a2b08b1064f552836cdd88e75bd4f20642c8683873b91cc32aeb987534c802" => :yosemite
|
2017-06-12 17:16:32 +00:00
|
|
|
end
|
|
|
|
|
2017-05-30 09:06:26 +00:00
|
|
|
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
|