Method: Toolshed::Github#initialize
- Defined in:
- lib/toolshed/github.rb
#initialize(options = {}) ⇒ Github
5 6 7 8 9 10 11 12 13 |
# File 'lib/toolshed/github.rb', line 5 def initialize(={}) @auth = { username: Toolshed::Client::github_username, password: Toolshed::Client::github_password } = { :headers => { "User-Agent" => "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1309.0 Safari/537.17" }, basic_auth: @auth, } end |