Class: Jammer::User
- Inherits:
-
Object
- Object
- Jammer::User
- Defined in:
- lib/jammer/user.rb
Instance Method Summary collapse
Instance Method Details
#email ⇒ Object
7 8 9 |
# File 'lib/jammer/user.rb', line 7 def email git_user_attribute 'email' end |
#git_user_attribute(attribute) ⇒ Object
11 12 13 |
# File 'lib/jammer/user.rb', line 11 def git_user_attribute(attribute) `git config --get user.#{attribute}`.strip end |
#name ⇒ Object
3 4 5 |
# File 'lib/jammer/user.rb', line 3 def name git_user_attribute 'name' end |