cache_fu rake task
Reported by Carlos OKieffe | May 21st, 2007 @ 01:31 AM
after installing the cache_fu plugin today (Sunday May 20), I got an error while trying to run 'rake --tasks'.
../vendor/plugins/cache_fu/tasks/memcached.rake:21: syntax error, unexpected kRESCUE_MOD, expecting ')' config = YAML.load_file('../../../config/memcached.yml' rescue '../defaults/memcached.yml.default')
I think the issue was the following line of code:
def config
return @config if @config config =
YAML.load_file('../../../config/memcached.yml' rescue
'../defaults/memcached.yml.default') @config =
config['defaults'].merge(config['development']) end
should be something more like:
def config
return @config if @config
begin config = YAML.load_file('../../../config/memcached.yml')
rescue config = YAML.load_file('../defaults/memcached.yml.default') end
@config = config['defaults'].merge(config['development']) end
Comments and changes to this ticket
-
Chris Wanstrath May 21st, 2007 @ 01:31 AM
- State changed from new to resolved
(from [232]) fix broken syntax in cache_fu rake file [#19 state:resolved]
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
- Nobody is watching this ticket.