2016-09-27 05:35:03 +00:00
|
|
|
class Kompose < Formula
|
|
|
|
desc "Tool to move from `docker-compose` to Kubernetes"
|
|
|
|
homepage "http://kompose.io"
|
2017-03-06 15:08:37 +00:00
|
|
|
url "https://github.com/kubernetes-incubator/kompose/archive/v0.3.0.tar.gz"
|
|
|
|
sha256 "047e5367856f07338515eea43fb213e08fdde79333250e4cc85251e80251c928"
|
2016-09-27 05:35:03 +00:00
|
|
|
|
2017-02-11 09:53:37 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-03-06 15:17:27 +00:00
|
|
|
sha256 "1f9c9222f6bfa1971afbde27a1d79e64431caf5394cf5657065e30f272f21ef2" => :sierra
|
|
|
|
sha256 "593a2b4a2bd8a077b8ad590c2c59f0a43145970782b7164a9a5fec1acb0bdfae" => :el_capitan
|
|
|
|
sha256 "e69133d21c5b19fc9e0ef522d518e9ebbd3664bb1096ce583538d66f448e38ea" => :yosemite
|
2017-02-11 09:53:37 +00:00
|
|
|
end
|
|
|
|
|
2016-09-27 05:35:03 +00:00
|
|
|
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
|