dpl 1.8.40.travis.2195.5 → 1.8.40.travis.2196.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dpl/provider/pages.rb +6 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b75fca06d22f0571a50d98384bc85a7d5f214e33
|
4
|
+
data.tar.gz: f9c235dacc316db8d207438077a2d7390151fc10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94f5eec007c2b69d2bcd91c1c6f7bb854701b51d71cd2938d0bb089469df4a94377e581d4d39be31a45bbdf92aafe0eaf6bb541412e1340ff4a97e0446b234a1
|
7
|
+
data.tar.gz: 680203c4071fd845e6e71028570ac16cfaa2607e360e1c76ebeb2446ae6f884a9af1d9aefec505154a33aff9e88ceed5f17a7f3eff204197c121b5c0ee7424db
|
data/lib/dpl/provider/pages.rb
CHANGED
@@ -6,6 +6,7 @@ module DPL
|
|
6
6
|
Options:
|
7
7
|
- repo [optional, for pushed to other repos]
|
8
8
|
- github-token [required]
|
9
|
+
- github-url [optional, defaults to github.com]
|
9
10
|
- target-branch [optional, defaults to gh-pages]
|
10
11
|
- local-dir [optional, defaults to `pwd`]
|
11
12
|
- fqdn [optional]
|
@@ -22,16 +23,17 @@ module DPL
|
|
22
23
|
super
|
23
24
|
|
24
25
|
@build_dir = options[:local_dir] || '.'
|
25
|
-
|
26
26
|
@project_name = options[:project_name] || fqdn || slug
|
27
|
-
@gh_fqdn = fqdn
|
28
|
-
|
29
|
-
@gh_ref = "github.com/#{slug}.git"
|
30
27
|
@target_branch = options[:target_branch] || 'gh-pages'
|
28
|
+
|
29
|
+
@gh_fqdn = fqdn
|
30
|
+
@gh_url = options[:github_url] || 'github.com'
|
31
31
|
@gh_token = option(:github_token)
|
32
32
|
|
33
33
|
@gh_email = options[:email] || 'deploy@travis-ci.org'
|
34
34
|
@gh_name = "#{options[:name] || 'Deployment Bot'} (from Travis CI)"
|
35
|
+
|
36
|
+
@gh_ref = "#{@gh_url}/#{slug}.git"
|
35
37
|
end
|
36
38
|
|
37
39
|
def fqdn
|