Method: Lariat::Github#initialize_git_client
- Defined in:
- lib/lariat/github.rb
#initialize_git_client ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/lariat/github.rb', line 19 def initialize_git_client unless @config['token'] puts "You must have a Github API Token. Create one, and add it to the local 'config/github.yml' and try again." exit end ::Github.configure do |c| c.oauth_token = @config['token'] c.site = @config['site'] c.endpoint = @config['endpoint'] end end |