Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved the REDIS_CONF directly into the function.

  • Loading branch information...
commit e8cf217c715ae12b01038835d57abb84adc95695 1 parent 5b29e78
@ELLIOTTCABLE ELLIOTTCABLE authored mxcl committed
Showing with 15 additions and 17 deletions.
  1. +15 −17 Library/Formula/redis.rb
View
32 Library/Formula/redis.rb
@@ -1,6 +1,19 @@
require 'formula'
-REDIS_CONF=<<-EOS
+class Redis <Formula
+ url 'http://redis.googlecode.com/files/redis-1.1.91-beta.tar.gz'
+ version '1.1.91-beta'
+ homepage 'http://code.google.com/p/redis/'
+ sha1 '9a5de92aa57c2c70e1d168a4e985ec7d79dae882'
+
+ def install
+ system "make"
+
+ (share+'redis').install %w( utils client-libraries doc )
+ bin.install %w( redis-benchmark redis-cli redis-server )
+
+ # set up the conf file
+ (etc+'redis.conf').write <<-REDIS_CONF
# Redis configuration file example
# By default Redis does not run as a daemon. Use 'yes' if you need it.
@@ -133,22 +146,7 @@
# your development environment so that we can test it better.
shareobjects no
shareobjectspoolsize 1024
-EOS
-
-class Redis <Formula
- url 'http://redis.googlecode.com/files/redis-1.1.91-beta.tar.gz'
- version '1.1.91-beta'
- homepage 'http://code.google.com/p/redis/'
- sha1 '9a5de92aa57c2c70e1d168a4e985ec7d79dae882'
-
- def install
- system "make"
-
- (share+'redis').install %w( utils client-libraries doc )
- bin.install %w( redis-benchmark redis-cli redis-server )
-
- # set up the conf file
- (etc+'redis.conf').write REDIS_CONF
+ REDIS_CONF
# FIXME: You get “* Can't chdir to '/var/db/redis/': No such file or
# directory” when running with this conf. We need to either make
Please sign in to comment.
Something went wrong with that request. Please try again.