Sha256: e6c6a6441edec50c980433db45bc0619c651b3d66c4407c3f9bbbc4fa19c89dd

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

module GitHubWatched::Config
  def self.git_config(name)
    value = `git config --get #{name}`.chomp
    value if $?.success?
  end

  def self.github_username
    git_config('github.user') or raise 'GitHub username not set. Use `git config --global github.user username` to set.'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
github-watched-0.0.1 lib/github-watched/config.rb