Class: Lolcommits::GitInfo
- Inherits:
-
Object
- Object
- Lolcommits::GitInfo
- Includes:
- Methadone::CLILogging
- Defined in:
- lib/lolcommits/git_info.rb
Constant Summary collapse
- GIT_URL_REGEX =
%r{.*[:]([\/\w\-]*).git}
Instance Attribute Summary collapse
-
#author_email ⇒ Object
Returns the value of attribute author_email.
-
#author_name ⇒ Object
Returns the value of attribute author_name.
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#message ⇒ Object
Returns the value of attribute message.
-
#repo ⇒ Object
Returns the value of attribute repo.
-
#repo_internal_path ⇒ Object
Returns the value of attribute repo_internal_path.
-
#sha ⇒ Object
Returns the value of attribute sha.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ GitInfo
constructor
A new instance of GitInfo.
Constructor Details
#initialize ⇒ GitInfo
Returns a new instance of GitInfo.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/lolcommits/git_info.rb', line 10 def initialize debug 'GitInfo: parsed the following values from commit:' debug "GitInfo: \t#{}" debug "GitInfo: \t#{sha}" debug "GitInfo: \t#{repo_internal_path}" debug "GitInfo: \t#{repo}" debug "GitInfo: \t#{branch}" debug "GitInfo: \t#{}" if debug "GitInfo: \t#{}" if end |
Instance Attribute Details
#author_email ⇒ Object
Returns the value of attribute author_email.
5 6 7 |
# File 'lib/lolcommits/git_info.rb', line 5 def @author_email end |
#author_name ⇒ Object
Returns the value of attribute author_name.
5 6 7 |
# File 'lib/lolcommits/git_info.rb', line 5 def @author_name end |
#branch ⇒ Object
Returns the value of attribute branch.
5 6 7 |
# File 'lib/lolcommits/git_info.rb', line 5 def branch @branch end |
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/lolcommits/git_info.rb', line 5 def @message end |
#repo ⇒ Object
Returns the value of attribute repo.
5 6 7 |
# File 'lib/lolcommits/git_info.rb', line 5 def repo @repo end |
#repo_internal_path ⇒ Object
Returns the value of attribute repo_internal_path.
5 6 7 |
# File 'lib/lolcommits/git_info.rb', line 5 def repo_internal_path @repo_internal_path end |
#sha ⇒ Object
Returns the value of attribute sha.
5 6 7 |
# File 'lib/lolcommits/git_info.rb', line 5 def sha @sha end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/lolcommits/git_info.rb', line 5 def url @url end |