21 lines
625 B
Ruby
21 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
|