aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2012-02-09 23:55:25 -0600
committerJack Nagel2012-02-09 23:57:04 -0600
commit1141261922da63e2c0e092335a7f97769b00dbce (patch)
tree90caf108f86c42ec10f881b70e58b9563c2b7817
parente5e04d93e10f61fead8ba47ba3c562479111d124 (diff)
downloadhomebrew-1141261922da63e2c0e092335a7f97769b00dbce.tar.bz2
mongodb: remove --nojournal and --rest options
These did nothing at compile-time since we don't build mongodb from source; they were only used to write the example configuration file, which is outside the scope of what a formula should do. Closes #9993. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rw-r--r--Library/Formula/mongodb.rb45
1 files changed, 3 insertions, 42 deletions
diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb
index 42d42e99f..75ae9ce2f 100644
--- a/Library/Formula/mongodb.rb
+++ b/Library/Formula/mongodb.rb
@@ -17,11 +17,7 @@ class Mongodb < Formula
skip_clean :all
def options
- [
- ['--32-bit', 'Build 32-bit only.'],
- ['--nojournal', 'Disable write-ahead logging (Journaling)'],
- ['--rest', 'Enable the REST Interface on the HTTP Status Page'],
- ]
+ [['--32-bit', 'Build 32-bit only.']]
end
def install
@@ -38,9 +34,7 @@ class Mongodb < Formula
plist_path.chmod 0644
end
- def caveats
- s = ""
- s += <<-EOS.undent
+ def caveats; <<-EOS.undent
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
cp #{plist_path} ~/Library/LaunchAgents/
@@ -58,48 +52,15 @@ class Mongodb < Formula
If this is a first install, you can copy one from #{prefix}/mongod.conf:
cp #{prefix}/mongod.conf #{etc}/mongod.conf
EOS
-
- if ARGV.include? "--nojournal"
- s += "\n"
- s += <<-EOS.undent
- Write Ahead logging (Journaling) has been disabled.
- EOS
- else
- s += "\n"
- s += <<-EOS.undent
- MongoDB 1.8+ includes a feature for Write Ahead Logging (Journaling), which has been enabled by default.
- To disable journaling, use --nojournal.
- EOS
- end
-
- return s
end
- def mongodb_conf
- conf = ""
- conf += <<-EOS.undent
+ def mongodb_conf; <<-EOS.undent
# Store data in #{var}/mongodb instead of the default /data/db
dbpath = #{var}/mongodb
# Only accept local connections
bind_ip = 127.0.0.1
EOS
-
- if ARGV.include? '--nojournal'
- conf += <<-EOS.undent
- # Disable Write Ahead Logging
- nojournal = true
- EOS
- end
-
- if ARGV.include? '--rest'
- conf += <<-EOS.undent
- # Enable the REST interface on the HTTP Console (startup port + 1000)
- rest = true
- EOS
- end
-
- return conf
end
def startup_plist