Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…configurations
  • Loading branch information...
commit cf0e16ea5f7bed9a3b74aaeb611b3b3070728e95 1 parent a62754d
Wes Oldenbeuving Narnach authored

Showing 1 changed file with 3 additions and 4 deletions. Show diff stats Hide diff stats

  1. +3 4 bin/herd
7 bin/herd
@@ -9,10 +9,9 @@ class Herd
9 9 end
10 10
11 11 def init
12   - config[project] ||= {
13   - 'rails_dirs' => [],
14   - 'merbs' => []
15   - }
  12 + proj = config[project] ||= {}
  13 + proj['rails_dirs'] ||= []
  14 + proj['merbs'] ||= []
16 15 File.open(config_file, 'wb') {|f| f.write(config.to_yaml)}
17 16 end
18 17

0 comments on commit cf0e16e

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