Class: Blastr::People
- Inherits:
-
Object
- Object
- Blastr::People
- Defined in:
- lib/people/people.rb
Constant Summary collapse
- PEOPLE_FILE =
File.("~/.blastr/people")
- CONFIG_HELP_MESSAGE =
"\nIf you'd like Blastr to pronounce committers' real names instead of their\nUNIX names, you can create a YAML configuration file at\n\n \#{PEOPLE_FILE}\n\nThe file format is like this:\n\njohndoe: John Doe\njanedoe: Jane Doe\njimbo: James Ruby\n\n"
Class Method Summary collapse
Class Method Details
.full_name_of(username) ⇒ Object
32 33 34 |
# File 'lib/people/people.rb', line 32 def self.full_name_of(username) people[username] ||= username end |
.people ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/people/people.rb', line 24 def self.people if File.file?(PEOPLE_FILE) yaml = YAML.load_file(PEOPLE_FILE) return yaml unless yaml == false end { } end |