Commit c156862 1 parent 34f2959 commit c156862 Copy full SHA for c156862
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,11 +108,11 @@ def git_config
108
108
config_file = File . read ( config_path )
109
109
110
110
# Default dokku config: dokku@host.com:app
111
- default_style_regex = /\[ remote "dokku "\] \s +url \= dokku@(?<domain>.*):(?<app_name>.*)$/
111
+ default_style_regex = /\[ remote "#{ remote } "\] \s +url \= dokku@(?<domain>.*):(?<app_name>.*)$/
112
112
match ||= config_file . match ( default_style_regex )
113
113
114
114
# SSH dokku config: ssh://dokku@host.com:1337/app
115
- ssh_style_regex = /\[ remote "dokku "\] \s +url \= ssh:\/ \/ dokku@(?<domain>.*):(?<port>.*)\/ (?<app_name>.*)$/
115
+ ssh_style_regex = /\[ remote "#{ remote } "\] \s +url \= ssh:\/ \/ dokku@(?<domain>.*):(?<port>.*)\/ (?<app_name>.*)$/
116
116
match ||= config_file . match ( ssh_style_regex )
117
117
118
118
exit unless match
You can’t perform that action at this time.
0 commit comments