lib/dpl/provider/pages.rb in dpl-pages-1.10.13 vs lib/dpl/provider/pages.rb in dpl-pages-1.10.14
- old
+ new
@@ -32,11 +32,11 @@
@project_name = options[:project_name] || fqdn || slug
@target_branch = options[:target_branch] || 'gh-pages'
@gh_fqdn = fqdn
- @gh_url = options[:github_url] || 'github.com'
+ @gh_url = options[:url] || options[:github_url] || 'github.com'
@keep_history = !!keep_history
@allow_empty_commit = !!allow_empty_commit
@committer_from_gh = !!committer_from_gh
@verbose = !!verbose
@@ -51,10 +51,10 @@
print_step "The repo is configured to use committer user and email." if @committer_from_gh
end
def gh_token
- @gh_token ||= option(:github_token)
+ @gh_token ||= option(:github_token, :token)
end
def gh_remote_url
@gh_remote_url ||= "https://#{gh_token}@#{@gh_ref}"
end