class GitHelper::GitConfigReader

Public Instance Methods

git_config_file_path() click to toggle source
# 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() click to toggle source
# File lib/git_helper/git_config_reader.rb, line 13
def github_token
  config_file[:github_token]
end
github_user() click to toggle source
# File lib/git_helper/git_config_reader.rb, line 17
def github_user
  config_file[:github_user]
end
gitlab_token() click to toggle source
# File lib/git_helper/git_config_reader.rb, line 5
def gitlab_token
  config_file[:gitlab_token]
end
gitlab_user() click to toggle source
# File lib/git_helper/git_config_reader.rb, line 9
def gitlab_user
  config_file[:gitlab_user]
end

Private Instance Methods

config_file() click to toggle source
# File lib/git_helper/git_config_reader.rb, line 25
        def config_file
  YAML.load_file(git_config_file_path)
end