Permalink
Browse files

Made herd list more verbose by adding the directories to the output.

  • Loading branch information...
1 parent d9866e1 commit b26ec6b6d0de3e1340e6972fbd2bbc34ac816d86 @FiXato committed Aug 21, 2008
Showing with 8 additions and 2 deletions.
  1. +8 −2 bin/herd
View
10 bin/herd
@@ -19,8 +19,14 @@ class Herd
def list
config.each do |project_name, options|
puts project_name
- puts ' rails: %i' % options['rails_dirs'].size if options['rails_dirs']
- puts ' merbs: %i' % options['merbs'].size if options['merbs']
+ for type in %w[rails_dirs merbs]
+ if options[type]
+ puts ' %s: %i' % [type,options[type].size]
+ for project_dir in options[type]
+ puts ' - %s' % project_dir
+ end
+ end
+ end
puts ' mongrel_options: %s' % options['mongrel_options'].join(' ') if options['mongrel_options'].size > 0
end
end

0 comments on commit b26ec6b

Please sign in to comment.