Class: GitReport::GitConfiguration
- Inherits:
-
Object
- Object
- GitReport::GitConfiguration
- Defined in:
- lib/git_configuration.rb
Class Method Summary collapse
-
.user_email ⇒ Object
returns the current users email from git config.
-
.user_name ⇒ Object
returns the current users name from git config.
Class Method Details
.user_email ⇒ Object
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_name ⇒ Object
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 |