summaryrefslogtreecommitdiffstats
path: root/lib/gce_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gce_command.rb')
-rw-r--r--lib/gce_command.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gce_command.rb b/lib/gce_command.rb
index cec1b9c2b..214cc1c05 100644
--- a/lib/gce_command.rb
+++ b/lib/gce_command.rb
@@ -143,7 +143,7 @@ module OpenShift
:desc => 'A relative path where files are written to.'
desc "scp_from", "scp files from an instance"
def scp_from(*ssh_ops, host)
- if host =~ /^([\w\d_.-]+)@([\w\d-_.]+)$/
+ if host =~ /^([\w\d_.\-]+)@([\w\d\-_.]+)$/
user = $1
host = $2
end
@@ -175,7 +175,7 @@ module OpenShift
desc "ssh", "Ssh to an instance"
def ssh(*ssh_ops, host)
- if host =~ /^([\w\d_.-]+)@([\w\d-_.]+)/
+ if host =~ /^([\w\d_.\-]+)@([\w\d\-_.]+)/
user = $1
host = $2
end