From bebbd8e0dca3d85d7f813071c23207d73cae45c1 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Mon, 31 Aug 2009 22:34:42 -0600 Subject: Dict.org client formula Added Formula::etc() Added Pathname::write() convenience function which can write a string out to the file it points too, raising if it would have to overwrite. --- Library/Formula/dict.rb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Library/Formula/dict.rb (limited to 'Library/Formula') diff --git a/Library/Formula/dict.rb b/Library/Formula/dict.rb new file mode 100644 index 000000000..8333c09fe --- /dev/null +++ b/Library/Formula/dict.rb @@ -0,0 +1,36 @@ +require 'brewkit' + +DICT_CONF=<<-EOS +# /etc/dict.conf Written by Bob Hilliard +# 1998/03/20. Last revised Sun, 22 Nov 1998 18:10:04 -0500 This is +# the configuration file for /usr/bin/dict. In most cases only the +# server keyword need be specified. + +# This default configuration will try to access a dictd server on the +# local host, failing that, it will try the public server. In many +# cases this will be slow, so you should comment out the line for the +# server that you don't want to use. To use any other server, enter +# its IP address in place of "dict.org". + +# Refer to the dict manpage (man dict) for other options that could +# be inserted in here. + +server localhost +server dict.org +EOS + +class Dict