artifactory-cli-go 1.2.0 (new formula)

Command line interface for Artifactory

Closes Homebrew/homebrew#46891.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Jainish Shah 2015-12-10 15:34:07 -08:00 committed by Dominyk Tiller
parent b88eb741a7
commit a6b7b31ade

View file

@ -0,0 +1,21 @@
class ArtifactoryCliGo < Formula
desc "Provides a command-line interface for Artifactory."
homepage "https://github.com/JFrogDev/artifactory-cli-go"
url "https://github.com/JFrogDev/artifactory-cli-go/archive/1.2.0.tar.gz"
sha256 "173a24e0b821c6ff2bb85fa4cbe733fa681a8284029b77387baf0fa5f2fcfc4e"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["GO15VENDOREXPERIMENT"] = "1"
(buildpath/"src/github.com/JFrogDev/artifactory-cli-go/").install Dir["*"]
system "go", "build", "-o", "#{bin}/art", "-v", "github.com/JFrogDev/artifactory-cli-go/art/"
end
test do
actual = pipe_output("#{bin}/art upload")
expected = "The --url option is mandatory\n"
assert_equal expected, actual
end
end