class GrowlGithubFeed::Config
Attributes
pass[R]
token[R]
user[R]
Public Class Methods
new()
click to toggle source
# File lib/growl-github-feed/config.rb, line 9 def initialize # set user parameters local_user = ENV["USER"] config = ParseConfig.new("/Users/#{local_user}/.gitconfig") @user = config['github']['user'] @token= config['github']['token'] @user = ask("Github user name: ") if @user.nil? @pass = ask("Github password: ") { |q| q.echo = false } if @token.nil? end