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
21 22 23 |
# File 'lib/git_helper/git_config_reader.rb', line 21 def git_config_file_path "#{Dir.pwd.scan(%r{\A/\w*/\w*/}).first}.git_helper/config.yml" end |
#github_token ⇒ Object
13 14 15 |
# File 'lib/git_helper/git_config_reader.rb', line 13 def github_token config_file[:github_token] end |
#github_user ⇒ Object
17 18 19 |
# File 'lib/git_helper/git_config_reader.rb', line 17 def github_user config_file[:github_user] end |
#gitlab_token ⇒ Object
5 6 7 |
# File 'lib/git_helper/git_config_reader.rb', line 5 def gitlab_token config_file[:gitlab_token] end |
#gitlab_user ⇒ Object
9 10 11 |
# File 'lib/git_helper/git_config_reader.rb', line 9 def gitlab_user config_file[:gitlab_user] end |