Sha256: 956061c5c36c24e1778cb5595aef66e47c82cbe7ee235bf0b2d6b2b8e102cda0

Contents?: true

Size: 432 Bytes

Versions: 1

Compression:

Stored size: 432 Bytes

Contents

module GitHelper
  class GitConfigReader
    def gitlab_token
      config_file[:gitlab_token]
    end

    def github_token
      config_file[:github_token]
    end

    def git_config_file_path
      Dir.pwd.scan(/\A\/[\w]*\/[\w]*\//).first << git_config_file
    end

    private def config_file
      YAML.load_file(git_config_file_path)
    end

    private def git_config_file
      '.git_helper/config.yml'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git_helper-3.3.0 lib/git_helper/git_config_reader.rb