diff options
| author | Andrew Holland | 2015-03-03 20:40:17 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-03-04 15:24:34 +0000 |
| commit | 2f3de099c5ac21bd4f2fb9cedd7a94213daf8191 (patch) | |
| tree | 0461ae0a6b224fc8274462670efa01b0acb2b561 /Library | |
| parent | b1a01fe6e398be587955ac840d48ce1c49685795 (diff) | |
| download | homebrew-2f3de099c5ac21bd4f2fb9cedd7a94213daf8191.tar.bz2 | |
nexus 2.11.2-03
Closes #37376.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/nexus.rb | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/Library/Formula/nexus.rb b/Library/Formula/nexus.rb index 75758c8a5..d9573afd6 100644 --- a/Library/Formula/nexus.rb +++ b/Library/Formula/nexus.rb @@ -1,22 +1,20 @@ -require 'formula' - class Nexus < Formula - homepage 'http://www.sonatype.org/' - url 'http://download.sonatype.com/nexus/oss/nexus-2.11.1-01-bundle.tar.gz' - version '2.11.1-01' - sha1 'fe55d57d00973ce18b2f4ff10caffa45bd42fdac' + homepage "http://www.sonatype.org/" + version "2.11.2-03" + url "https://download.sonatype.com/nexus/oss/nexus-2.11.2-03-bundle.tar.gz" + sha1 "d64fe117b1eb344ac0020819d31bdcc6d4ede123" def install - rm_f Dir['bin/*.bat'] + rm_f Dir["bin/*.bat"] # Put the sonatype-work directory in the var directory, to persist across version updates inreplace "nexus-#{version}/conf/nexus.properties", - 'nexus-work=${bundleBasedir}/../sonatype-work/nexus', + "nexus-work=${bundleBasedir}/../sonatype-work/nexus", "nexus-work=#{var}/nexus" libexec.install Dir["nexus-#{version}/*"] - bin.install_symlink libexec/'bin/nexus' + bin.install_symlink libexec/"bin/nexus" end - plist_options :manual => "#{HOMEBREW_PREFIX}/opt/nexus/libexec/bin/nexus start" + plist_options :manual => "nexus start" def plist; <<-EOS.undent <?xml version="1.0" encoding="UTF-8"?> @@ -36,4 +34,9 @@ class Nexus < Formula </plist> EOS end + + test do + output = `#{bin}/nexus status` + assert_match "Nexus OSS is", output + end end |
