Replace dashes by underscores in GitHub usernames

This commit is contained in:
Benjamin Grandfond 2013-06-14 04:43:56 +03:00
parent 5d81900bea
commit e3b245f102

View file

@ -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