Module: Auth
- Defined in:
- lib/git-flattr.rb
Class Method Summary collapse
Class Method Details
.do! ⇒ Object
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/git-flattr.rb', line 102 def do! begin Launchy.open("https://git-flattr.herokuapp.com/") token = ask("Token: ") rescue Exception => e puts e. puts "Seems like you are missing a Flattr access token." puts "Browse to http://git-flattr.herokuapp.com and follow the instructions" token = ask("Token: ") end if token.nil? error "Invalid access token" end Git.set_config "flattr.token", token.chomp end |