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:
parent
b88eb741a7
commit
a6b7b31ade
1 changed files with 21 additions and 0 deletions
21
Formula/artifactory-cli-go.rb
Normal file
21
Formula/artifactory-cli-go.rb
Normal 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
|
Loading…
Reference in a new issue