Class: GitReport::GitConfiguration

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

Class Method Summary collapse

Class Method Details

.user_emailObject

returns the current users email from git config



10
11
12
# File 'lib/git_configuration.rb', line 10

def self.user_email
  @@useremail ||= GitReport.project.project.config['user.email']
end

.user_nameObject

returns the current users name from git config



5
6
7
# File 'lib/git_configuration.rb', line 5

def self.user_name
  @@username ||= GitReport.project.project.config['user.name']
end