aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-13 15:09:01 -0700
committerAdam Vandenberg2013-08-13 15:09:10 -0700
commit454878d8e90b6dea80b226e10d29594584468aaa (patch)
treefb96320efb274ae02868c003f7ff02880fe1224a /Library/Formula
parenta5887531528583ea97c290993612b04e3f925cc8 (diff)
downloadhomebrew-454878d8e90b6dea80b226e10d29594584468aaa.tar.bz2
mosquitto: use assert in test; style nits
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mosquitto.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Formula/mosquitto.rb b/Library/Formula/mosquitto.rb
index d14c1a209..8c9bb8322 100644
--- a/Library/Formula/mosquitto.rb
+++ b/Library/Formula/mosquitto.rb
@@ -14,26 +14,26 @@ class Mosquitto < Formula
system "cmake", ".", *std_cmake_args
system "make install"
- # Create the working directory under var
- (var+'mosquitto').mkpath
+ # Create the working directory
+ (var/'mosquitto').mkpath
end
test do
quiet_system "#{sbin}/mosquitto", "-h"
- $?.exitstatus == 3
+ assert_equal 3, $?.exitstatus
end
def caveats; <<-EOD.undent
mosquitto has been installed with a default configuration file.
- You can make changes to the configuration by editing
+ You can make changes to the configuration by editing:
#{etc}/mosquitto/mosquitto.conf
- Python client bindings can be installed from the Python Package Index
+ Python client bindings can be installed from the Python Package Index:
pip install mosquitto
- Javascript client is available at
+ Javascript client is available at:
http://mosquitto.org/js/
- EOD
+ EOD
end
plist_options :manual => "mosquitto -c #{HOMEBREW_PREFIX}/etc/mosquitto/mosquitto.conf"