homebrew-core/Formula/cypher-shell.rb
Rui Chen 2c3c5285cd cypher-shell 1.1.10
Closes #39694.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-05-12 12:28:00 +02:00

27 lines
815 B
Ruby

class CypherShell < Formula
desc "Command-line shell where you can execute Cypher against Neo4j"
homepage "https://github.com/neo4j/cypher-shell"
url "https://github.com/neo4j/cypher-shell/releases/download/1.1.10/cypher-shell.zip"
version "1.10.0"
sha256 "e3dcef03bdc8988fa95f3b87df0c182b252c02d28468852288bf0c6858ca0615"
bottle :unneeded
depends_on :java => "1.8"
def install
rm_f Dir["bin/*.bat"]
# Needs the jar, but cannot go in bin
share.install ["cypher-shell.jar"]
# Copy the bin
bin.install ["cypher-shell"]
bin.env_script_all_files(share, :NEO4J_HOME => ENV["NEO4J_HOME"])
end
test do
# The connection will fail and print the name of the host
assert_match /doesntexist/, shell_output("#{bin}/cypher-shell -a bolt://doesntexist 2>&1", 1)
end
end