Skip to content
Browse files

herd init can now add missing rails dirs or merb configs to existing …

…configurations
  • Loading branch information...
1 parent a62754d commit cf0e16ea5f7bed9a3b74aaeb611b3b3070728e95 @Narnach Narnach committed Aug 12, 2008
Showing with 3 additions and 4 deletions.
  1. +3 −4 bin/herd
View
7 bin/herd
@@ -9,10 +9,9 @@ class Herd
end
def init
- config[project] ||= {
- 'rails_dirs' => [],
- 'merbs' => []
- }
+ proj = config[project] ||= {}
+ proj['rails_dirs'] ||= []
+ proj['merbs'] ||= []
File.open(config_file, 'wb') {|f| f.write(config.to_yaml)}
end

0 comments on commit cf0e16e

Please sign in to comment.
Something went wrong with that request. Please try again.