2015-03-19 18:22:34 +00:00
|
|
|
class DockerSwarm < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Turn a pool of Docker hosts into a single, virtual host"
|
2015-03-19 18:22:34 +00:00
|
|
|
homepage "https://github.com/docker/swarm"
|
2016-07-29 03:03:37 +00:00
|
|
|
url "https://github.com/docker/swarm/archive/v1.2.4.tar.gz"
|
|
|
|
sha256 "ef8101033990a595ec41201fd9eb496852fd14bd25febeb7a181fd5c8bd850d3"
|
2015-04-17 06:24:13 +00:00
|
|
|
head "https://github.com/docker/swarm.git"
|
2015-03-19 18:22:34 +00:00
|
|
|
|
2015-03-19 18:55:30 +00:00
|
|
|
bottle do
|
2015-09-23 13:36:22 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-09-16 22:00:37 +00:00
|
|
|
sha256 "d6c5358cb375efef31ded91e0affa15f269c633f981f89cf911e2720a5c6aeef" => :sierra
|
2016-07-29 07:06:19 +00:00
|
|
|
sha256 "9995d6c8cef6f8ebd16e3640ab30847714beb365f3a08e18ff6b90e99a9acc88" => :el_capitan
|
|
|
|
sha256 "9f411607c3b1d8df4e15ad7e15b133224379e56bce079a5b555e88ee8e3c04cd" => :yosemite
|
|
|
|
sha256 "f9040cb2284d3d59b46597e6135ec78bf3033c3c0bcdd1535a2cf7dbdd633266" => :mavericks
|
2015-03-19 18:55:30 +00:00
|
|
|
end
|
|
|
|
|
2015-03-19 18:22:34 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
2015-04-17 06:24:13 +00:00
|
|
|
def install
|
2016-07-29 03:03:37 +00:00
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
(buildpath/"src/github.com/docker/swarm").install buildpath.children
|
|
|
|
cd "src/github.com/docker/swarm" do
|
|
|
|
system "go", "build", "-o", bin/"docker-swarm"
|
|
|
|
prefix.install_metafiles
|
|
|
|
end
|
2015-03-19 18:22:34 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-07-29 03:03:37 +00:00
|
|
|
assert_match version.to_s, shell_output("#{bin}/docker-swarm --version")
|
2015-03-19 18:22:34 +00:00
|
|
|
end
|
|
|
|
end
|