goreman 0.2.1 (new formula)

Fixes mattn/goreman#73.

Closes #32445.

Signed-off-by: Igor Kapkov <igasgeek@me.com>
This commit is contained in:
Kevin Burke 2018-09-25 20:09:28 -07:00 committed by Igor Kapkov
parent 1d278fe830
commit ea2bcb55ed
No known key found for this signature in database
GPG key ID: D7EEA6CEB7ECBDC7

28
Formula/goreman.rb Normal file
View file

@ -0,0 +1,28 @@
class Goreman < Formula
desc "Foreman clone written in Go"
homepage "https://github.com/mattn/goreman"
url "https://github.com/mattn/goreman/archive/v0.2.1.tar.gz"
sha256 "c1ef360fcc92688956bc7a18fae089d78754bd1dde22a89b27228ae5a840cc45"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["GO111MODULE"] = "on"
srcpath = buildpath/"src/github.com/mattn/goreman"
srcpath.install buildpath.children
cd srcpath do
system "go", "build", "-o", bin/"goreman"
prefix.install_metafiles
end
end
test do
(testpath/"Procfile").write "web: echo 'hello' > goreman-homebrew-test.out"
system bin/"goreman", "start"
assert_predicate testpath/"goreman-homebrew-test.out", :exist?
assert_match "hello", (testpath/"goreman-homebrew-test.out").read
end
end