2016-06-14 16:08:51 +00:00
|
|
|
class Convox < Formula
|
|
|
|
desc "The convox AWS PaaS CLI tool"
|
|
|
|
homepage "https://convox.com/"
|
2017-03-31 06:03:30 +00:00
|
|
|
url "https://github.com/convox/rack/archive/20170330004259.tar.gz"
|
|
|
|
sha256 "be96de3c0ecc4b5386e814d7c4b54ee59c643b4a475c085915b037165d6e0275"
|
2016-06-14 16:08:51 +00:00
|
|
|
|
2016-06-20 16:06:31 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-03-31 06:08:03 +00:00
|
|
|
sha256 "022bc6a576896191b5ceb4b86600157a21e979312b82ada207a3a006ee6e7581" => :sierra
|
|
|
|
sha256 "b1bb469115ed318329fcf027ded6427411897dcf9d474ff53d4b6cf358c789ce" => :el_capitan
|
|
|
|
sha256 "d31f3002eaf3336bdbee2260b7fa20fe9daafbe1de472495e7bf180b5c7ae1dc" => :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
|