Skip to content

Commit

Permalink
artifactory 3.4.2
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#36431.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
bfontaine authored and MikeMcQuaid committed Feb 1, 2015
1 parent 18c7234 commit cfe06ec
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions 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"
Expand Down Expand Up @@ -38,12 +36,11 @@ def install
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"
Expand Down Expand Up @@ -73,8 +70,7 @@ def plist; <<-EOS.undent
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

0 comments on commit cfe06ec

Please sign in to comment.