2015-08-22 21:39:51 +00:00
|
|
|
class Gollum < Formula
|
|
|
|
desc "n:m message multiplexer written in Go"
|
|
|
|
homepage "https://github.com/trivago/gollum"
|
2016-08-16 14:18:19 +00:00
|
|
|
url "https://github.com/trivago/gollum/archive/v0.4.4.tar.gz"
|
|
|
|
sha256 "54e69fcf5f07b2ff543415218faafa85dd83b095a1dbf0188f4c995d6b5a87cf"
|
2015-08-22 21:39:51 +00:00
|
|
|
head "https://github.com/trivago/gollum.git"
|
|
|
|
|
2015-08-22 23:26:51 +00:00
|
|
|
bottle do
|
2015-11-22 19:59:28 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-08-16 17:14:16 +00:00
|
|
|
sha256 "80d400f2b90777eeb9ccc7d74584d10dc17227935866efc5125d4e5630953a93" => :el_capitan
|
|
|
|
sha256 "e6879f0937f32ba566ac7be3ce5a37c767588971d13bafa27e71c381d2c51f57" => :yosemite
|
|
|
|
sha256 "aa3dcde3d7cbea3df1738ebcce89f08c8dcce01ec5fe1693c4192c085604660b" => :mavericks
|
2015-08-22 23:26:51 +00:00
|
|
|
end
|
|
|
|
|
2015-08-22 21:39:51 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
2016-08-16 14:18:19 +00:00
|
|
|
(buildpath/"src/github.com/trivago/gollum").install buildpath.children
|
2016-06-20 17:19:02 +00:00
|
|
|
cd "src/github.com/trivago/gollum" do
|
|
|
|
system "go", "build", "-o", bin/"gollum"
|
2016-08-16 14:18:19 +00:00
|
|
|
prefix.install_metafiles
|
2016-06-20 17:19:02 +00:00
|
|
|
end
|
2015-08-22 21:39:51 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.conf").write <<-EOS.undent
|
|
|
|
- "consumer.Profiler":
|
|
|
|
Enable: true
|
|
|
|
Runs: 100000
|
|
|
|
Batches: 100
|
|
|
|
Characters: "abcdefghijklmnopqrstuvwxyz .,!;:-_"
|
|
|
|
Message: "%256s"
|
|
|
|
Stream: "profile"
|
|
|
|
EOS
|
|
|
|
|
2016-01-19 09:24:29 +00:00
|
|
|
assert_match "parsed as ok", shell_output("#{bin}/gollum -tc #{testpath}/test.conf")
|
2015-08-22 21:39:51 +00:00
|
|
|
end
|
|
|
|
end
|