lib/dpl/provider/pages.rb in dpl-pages-1.9.1.travis.2666.5 vs lib/dpl/provider/pages.rb in dpl-pages-1.9.1.travis.2669.5
- old
+ new
@@ -89,10 +89,10 @@
# Achtung! Never verbosify git, since it may expose user's token.
options.fetch(:verbose, false)
end
def api # Borrowed from Releases provider
- error 'gh-token must be provided for Pages provider to work.' unless @gh_token
+ error 'gh-token must be provided for Pages provider to work.' unless gh_token
return @api if @api
api_opts = { :access_token => @gh_token }
api_opts[:api_endpoint] = @gh_url == 'github.com' ? "https://api.github.com/" : "https://#{@gh_url}/api/v3/"