Merge pull request #310 from benja-M-1/master

Replace dashes by underscores when generating personal manifest
This commit is contained in:
Rafael Mendonça França 2013-06-18 15:37:06 -07:00
commit 206dee9965
2 changed files with 3 additions and 1 deletions

View file

@ -19,6 +19,8 @@ class people::jbarnette {
} }
``` ```
Note that if your GitHub username contains dashes, you should replace them by underscores in both the manifest name and the class name.
## Projects ## Projects
While you _can_ include projects one by one, sometimes you might just want While you _can_ include projects one by one, sometimes you might just want

View file

@ -9,7 +9,7 @@ end
editor = ENV["VISUAL"] || ENV["EDITOR"] editor = ENV["VISUAL"] || ENV["EDITOR"]
home = ENV["BOXEN_HOME"] + "/repo" home = ENV["BOXEN_HOME"] + "/repo"
user = user.downcase user = user.downcase.tr('-', '_')
path = "#{home}/modules/people/manifests/#{user}.pp" path = "#{home}/modules/people/manifests/#{user}.pp"
unless File.exist? path unless File.exist? path