Class: GitHelper::GitConfigReader
- Inherits:
-
Object
- Object
- GitHelper::GitConfigReader
- Defined in:
- lib/git_helper/git_config_reader.rb
Instance Method Summary collapse
- #git_config_file_path ⇒ Object
- #github_token ⇒ Object
- #github_user ⇒ Object
- #gitlab_token ⇒ Object
- #gitlab_user ⇒ Object
Instance Method Details
#git_config_file_path ⇒ Object
19 20 21 |
# File 'lib/git_helper/git_config_reader.rb', line 19 def git_config_file_path Dir.pwd.scan(/\A\/[\w]*\/[\w]*\//).first << git_config_file end |
#github_token ⇒ Object
11 12 13 |
# File 'lib/git_helper/git_config_reader.rb', line 11 def github_token config_file[:github_token] end |
#github_user ⇒ Object
15 16 17 |
# File 'lib/git_helper/git_config_reader.rb', line 15 def github_user config_file[:github_user] end |
#gitlab_token ⇒ Object
3 4 5 |
# File 'lib/git_helper/git_config_reader.rb', line 3 def gitlab_token config_file[:gitlab_token] end |
#gitlab_user ⇒ Object
7 8 9 |
# File 'lib/git_helper/git_config_reader.rb', line 7 def gitlab_user config_file[:gitlab_user] end |