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



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_tokenObject



13
14
15
# File 'lib/git_helper/git_config_reader.rb', line 13

def github_token
  config_file[:github_token]
end

#github_userObject



17
18
19
# File 'lib/git_helper/git_config_reader.rb', line 17

def github_user
  config_file[:github_user]
end

#gitlab_tokenObject



5
6
7
# File 'lib/git_helper/git_config_reader.rb', line 5

def gitlab_token
  config_file[:gitlab_token]
end

#gitlab_userObject



9
10
11
# File 'lib/git_helper/git_config_reader.rb', line 9

def gitlab_user
  config_file[:gitlab_user]
end