diff options
| author | Baptiste Fontaine | 2015-02-01 13:29:08 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-01 13:50:40 +0100 |
| commit | e7fe942e240310b687e071ee769aa2176971fe88 (patch) | |
| tree | c6e86b6ddcf694cb77090eeedce8b75f3ac0d1ee /Library | |
| parent | 2dc88f74ab15ab4703effea8a16ba4e051ec648a (diff) | |
| download | homebrew-e7fe942e240310b687e071ee769aa2176971fe88.tar.bz2 | |
artifactory 3.4.2
Closes #36431.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/artifactory.rb | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Library/Formula/artifactory.rb b/Library/Formula/artifactory.rb index fc89fecb0..7ec89585b 100644 --- a/Library/Formula/artifactory.rb +++ b/Library/Formula/artifactory.rb @@ -1,11 +1,9 @@ -require "formula" - class Artifactory < Formula homepage "http://www.jfrog.com/artifactory/" - url "http://dl.bintray.com/jfrog/artifactory/artifactory-3.4.1.zip" - sha1 "c8ca7a024be33648ab36f5e674f340c6630ec603" + url "http://dl.bintray.com/jfrog/artifactory/artifactory-3.4.2.zip" + sha1 "394258c5fc8beffd60de821b6264660f5464b943" - depends_on :java => "1.7" + depends_on :java => "1.7+" option "with-low-heap", "Run artifactory with low Java memory options. Useful for development machines. Do not use in production." option "with-java8", "Adjust memory settings for Java 8" @@ -38,12 +36,11 @@ class Artifactory < Formula bin.install_symlink libexec/"bin/artifactory.default" end - def post_install # Create persistent data directory. Artifactory heavily relies on the data # directory being directly under ARTIFACTORY_HOME. - # Therefore, I symlink the data dir to var. - data = (var+"artifactory") + # Therefore, we symlink the data dir to var. + data = var/"artifactory" data.mkpath libexec.install_symlink data => "data" @@ -73,8 +70,7 @@ class Artifactory < Formula end test do - output = `#{bin}/artifactory.sh check 2>&1` + output = shell_output("#{bin}/artifactory.sh check 2>&1", 1) assert output.include?("Checking arguments to Artifactory") - assert_equal 1, $?.exitstatus end end |
