2016-06-14 16:08:51 +00:00
|
|
|
class Convox < Formula
|
|
|
|
desc "The convox AWS PaaS CLI tool"
|
|
|
|
homepage "https://convox.com/"
|
2016-11-28 13:52:08 +00:00
|
|
|
url "https://github.com/convox/rack/archive/20161123220503.tar.gz"
|
|
|
|
sha256 "8d7ccdbf8f43b9b27b770e11b2d3a520bd67aae6a89f9b6e3db98042b31ac105"
|
2016-06-14 16:08:51 +00:00
|
|
|
|
2016-06-20 16:06:31 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-11-28 16:32:44 +00:00
|
|
|
sha256 "44ff70c76e85a54df4c64e2d580c2832db47c9e9a911b074b055551e09b29a10" => :sierra
|
|
|
|
sha256 "6bd1a1fd374bda7db771c9455050c14d7e519c7dc87b096acd2902e78c8f5d81" => :el_capitan
|
|
|
|
sha256 "5f84f54f36202d7ccd3f8a0f22c137fefe8affb63132005cac4765bf596a2a37" => :yosemite
|
2016-06-20 16:06:31 +00:00
|
|
|
end
|
|
|
|
|
2016-06-14 16:08:51 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
(buildpath/"src/github.com/convox/rack").install Dir["*"]
|
2016-08-19 23:40:21 +00:00
|
|
|
system "go", "build", "-ldflags=-X main.Version=#{version}",
|
|
|
|
"-o", bin/"convox", "-v", "github.com/convox/rack/cmd/convox"
|
2016-06-14 16:08:51 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-08-19 23:40:21 +00:00
|
|
|
system bin/"convox"
|
2016-06-14 16:08:51 +00:00
|
|
|
end
|
|
|
|
end
|