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-15 11:16:45 +00:00
|
|
|
url "https://github.com/DarthSim/overmind/archive/v1.0.7.tar.gz"
|
|
|
|
sha256 "9ef5512b2b72db0110eafff8864357954b2516f79ecf0b3c040327512722539e"
|
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-08-15 11:23:53 +00:00
|
|
|
sha256 "fce6ae006af7eacc09ac98bed3f404ab7090b2fda7b146738efd0ff5f3ba7569" => :sierra
|
|
|
|
sha256 "52bb1e0d12053924a9c13a51763f6ded256d4b51e5daa65199e270c917f382b6" => :el_capitan
|
|
|
|
sha256 "487101326fc525458c3aa3de01b37170dfdbb4a5e76a8f8efb34e799043a951f" => :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
|