Merge pull request #310 from benja-M-1/master
Replace dashes by underscores when generating personal manifest
This commit is contained in:
commit
206dee9965
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
While you _can_ include projects one by one, sometimes you might just want
|
||||
|
|
|
@ -9,7 +9,7 @@ end
|
|||
|
||||
editor = ENV["VISUAL"] || ENV["EDITOR"]
|
||||
home = ENV["BOXEN_HOME"] + "/repo"
|
||||
user = user.downcase
|
||||
user = user.downcase.tr('-', '_')
|
||||
path = "#{home}/modules/people/manifests/#{user}.pp"
|
||||
|
||||
unless File.exist? path
|
||||
|
|
Loading…
Reference in a new issue