Permalink
Browse files

Bugfix: herd list would raise error when no mongrel options were spec…

…ified.

Old projects without mongrel options would have nil instead of an Array in
options['mongrel_options'], so it would not respond to #size and #join.
  • Loading branch information...
1 parent b26ec6b commit 3de11af20475940576869ad86fe391c458927001 @Narnach Narnach committed Aug 21, 2008
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/herd
View
@@ -27,7 +27,9 @@ class Herd
end
end
end
- puts ' mongrel_options: %s' % options['mongrel_options'].join(' ') if options['mongrel_options'].size > 0
+ if options['mongrel_options'].kind_of?(Array) and options['mongrel_options'].size > 0
+ puts ' mongrel_options: %s' % options['mongrel_options'].join(' ')
+ end
end
end

0 comments on commit 3de11af

Please sign in to comment.