File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,15 @@ Usage: jgd [options]
11
11
opt :url , 'Github URL' , type : String , default : ''
12
12
opt :branch , 'Destination branch' , type : String , default : 'gh-pages'
13
13
opt :branch_from , 'Source branch' , type : String , default : 'master'
14
+ opt :config , 'Deploy Config File' , type : String , default : '_config-deploy.yml'
14
15
end
15
16
16
17
branch = opts [ :branch ]
17
18
branch_from = opts [ :branch_from ]
19
+ config = opts [ :config ]
18
20
fail 'branch can\'t be empty' if branch . empty?
19
21
fail 'branch-from can\'t be empty' if branch_from . empty?
22
+ fail 'config can\'t be empty' if config . empty?
20
23
url = opts [ :url ]
21
24
url = `git config --get remote.origin.url` . strip if url . empty?
22
25
@@ -25,4 +28,4 @@ root = spec.gem_dir
25
28
script = File . join ( root , 'bash/deploy.sh' )
26
29
27
30
fail 'deployment failed, see log above' \
28
- unless system ( "#{ script } #{ url } #{ branch } #{ branch_from } " )
31
+ unless system ( "#{ script } #{ url } #{ branch } #{ branch_from } #{ config } " )
You can’t perform that action at this time.
0 commit comments