Class: Jammer::User

Inherits:
Object
  • Object
show all
Defined in:
lib/jammer/user.rb

Instance Method Summary collapse

Instance Method Details

#emailObject



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

#nameObject



3
4
5
# File 'lib/jammer/user.rb', line 3

def name
  git_user_attribute 'name'
end