class Trop::InfoGit::User

Attributes

user_email[RW]
user_name[RW]

Public Class Methods

new() click to toggle source
# File lib/trop/infogit.rb, line 10
def initialize
  @user_name ||= `git config --get --global user.name`
  @user_mail ||= `git config --get --global user.email`
end
user_mail() click to toggle source
# File lib/trop/infogit.rb, line 20
def self.user_mail
  initialize
  @user_mail.chomp!
end
user_name() click to toggle source
# File lib/trop/infogit.rb, line 15
def self.user_name
  initialize
  @user_name.chomp!
end