2014-12-11 15:46:45 +00:00
|
|
|
class Deis < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Deploy and manage applications on your own servers"
|
2014-12-11 15:46:45 +00:00
|
|
|
homepage "http://deis.io"
|
2016-08-23 06:56:39 +00:00
|
|
|
url "https://github.com/deis/deis/archive/v1.13.3.tar.gz"
|
|
|
|
sha256 "a5b28a7b94e430c4dc3cf3f39459b7c99fc0b80569e14e3defa2194d046316fd"
|
2014-12-11 15:46:45 +00:00
|
|
|
|
2014-12-12 03:48:32 +00:00
|
|
|
bottle do
|
2015-09-14 19:49:39 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-08-23 18:41:54 +00:00
|
|
|
sha256 "310cfc77e1edddab84270547c87c567958cb44d25437dfd4793f0a461b5b7de5" => :el_capitan
|
|
|
|
sha256 "be5c1307443b5fbf5a9cbeb027af3c1960f09b0318bc589850299afd5694b52e" => :yosemite
|
|
|
|
sha256 "e7550c86cdbf3618cb89445067aff24733c0786817760ed87b1c38268fc1b808" => :mavericks
|
2014-12-12 03:48:32 +00:00
|
|
|
end
|
|
|
|
|
2015-09-09 09:02:20 +00:00
|
|
|
depends_on "go" => :build
|
2015-11-14 10:24:21 +00:00
|
|
|
depends_on "godep" => :build
|
2014-12-11 15:46:45 +00:00
|
|
|
|
2015-09-09 09:02:20 +00:00
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
2016-07-18 12:10:32 +00:00
|
|
|
(buildpath/"src/github.com/deis").mkpath
|
|
|
|
ln_s buildpath, "src/github.com/deis/deis"
|
|
|
|
system "godep", "restore"
|
|
|
|
system "go", "build", "-o", bin/"deis", "client/deis.go"
|
2014-12-11 15:46:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-07-18 12:10:32 +00:00
|
|
|
system bin/"deis", "logout"
|
2014-12-11 15:46:45 +00:00
|
|
|
end
|
|
|
|
end
|