2014-12-14 03:22:48 +00:00
|
|
|
class Deisctl < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Deis Control Utility"
|
2016-10-18 22:45:51 +00:00
|
|
|
homepage "https://deis.io/"
|
2016-08-23 06:57:12 +00:00
|
|
|
url "https://github.com/deis/deis/archive/v1.13.3.tar.gz"
|
|
|
|
sha256 "a5b28a7b94e430c4dc3cf3f39459b7c99fc0b80569e14e3defa2194d046316fd"
|
2014-12-14 03:22:48 +00:00
|
|
|
|
2015-02-24 09:40:01 +00:00
|
|
|
bottle do
|
2015-09-28 15:49:06 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-09-29 03:16:01 +00:00
|
|
|
sha256 "dc7a728554046e2f6191ca4d0d2b61ecbd7c3c6b1e5f929b2f6f71a53c94a458" => :sierra
|
2016-08-23 19:25:12 +00:00
|
|
|
sha256 "1c3ce561d7b81441c162084775d5d295919550534520ec475216ca6c9af96b56" => :el_capitan
|
|
|
|
sha256 "3450f08fb4a5e46768c81ac57742b5b234a1171c93c195004627445c03f8ddbf" => :yosemite
|
|
|
|
sha256 "7ce46bd2b45d6772625ff82f4076ec42cb0232e4f896b07bda108c5f2db59f2e" => :mavericks
|
2015-02-24 09:40:01 +00:00
|
|
|
end
|
|
|
|
|
2014-12-14 03:22:48 +00:00
|
|
|
depends_on "go" => :build
|
2015-11-14 10:25:34 +00:00
|
|
|
depends_on "godep" => :build
|
2014-12-14 03:22:48 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
2016-07-18 12:02:22 +00:00
|
|
|
(buildpath/"src/github.com/deis").mkpath
|
|
|
|
ln_s buildpath, "src/github.com/deis/deis"
|
|
|
|
system "godep", "restore"
|
|
|
|
system "go", "build", "-o", bin/"deisctl", "deisctl/deisctl.go"
|
2014-12-14 03:22:48 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-08-16 20:10:59 +00:00
|
|
|
system bin/"deisctl", "help"
|
2014-12-14 03:22:48 +00:00
|
|
|
end
|
|
|
|
end
|