Sha256: 4c4ed34946bccadd13501a62f4164efdc59c7cf3631407153bf2061b63fb479a
Contents?: true
Size: 456 Bytes
Versions: 2
Compression:
Stored size: 456 Bytes
Contents
require 'yaml' module GitHelper class GitConfigReader def gitlab_token config_file[:gitlab_token] end def github_token config_file[:github_token] end private def config_file YAML.load_file(git_config_file_path) end private def git_config_file_path Dir.pwd.scan(/\A\/[\w]*\/[\w]*\//).first << git_config_file end private def git_config_file '.git_helper/config.yml' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
git_helper-3.0.1 | lib/git_helper/git_config_reader.rb |
git_helper-3.0.0 | lib/git_helper/git_config_reader.rb |