Class: GitHelper::GitConfigReader

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

Instance Method Summary collapse

Instance Method Details

#git_config_file_pathObject



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_tokenObject



11
12
13
# File 'lib/git_helper/git_config_reader.rb', line 11

def github_token
  config_file[:github_token]
end

#github_userObject



15
16
17
# File 'lib/git_helper/git_config_reader.rb', line 15

def github_user
  config_file[:github_user]
end

#gitlab_tokenObject



3
4
5
# File 'lib/git_helper/git_config_reader.rb', line 3

def gitlab_token
  config_file[:gitlab_token]
end

#gitlab_userObject



7
8
9
# File 'lib/git_helper/git_config_reader.rb', line 7

def gitlab_user
  config_file[:gitlab_user]
end