homebrew-core/Formula/kompose.rb
blackstar257 527efc1d84 kompose 0.2.0 (new formula)
Closes #5276.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2017-02-12 14:36:25 +00:00

20 lines
625 B
Ruby

class Kompose < Formula
desc "Tool to move from `docker-compose` to Kubernetes"
homepage "http://kompose.io"
url "https://github.com/kubernetes-incubator/kompose/archive/v0.2.0.tar.gz"
sha256 "a6be3935ff666b75ad06f389a5c23184c3c83659ae25135ab7c2c3d37b22d92d"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
mkdir_p buildpath/"src/github.com/kubernetes-incubator"
ln_s buildpath, buildpath/"src/github.com/kubernetes-incubator/kompose"
system "make", "bin"
bin.install "kompose"
end
test do
assert_match version.to_s, shell_output("#{bin}/kompose version")
end
end