diff options
author | Akram Ben Aissi <akram@free.fr> | 2015-01-28 04:14:27 -0500 |
---|---|---|
committer | Lénaïc Huard <lhuard@amadeus.com> | 2015-02-19 17:59:44 +0100 |
commit | 5090e93a9af43996407dc36f6c2a549d7e83d787 (patch) | |
tree | 73eac1fd7049f365744fd6a5723a4b6bb3b3a875 /lib/aws_command.rb | |
parent | 81db3db61f911cbbc6ff8f88b90cecb870c41381 (diff) | |
download | openshift-5090e93a9af43996407dc36f6c2a549d7e83d787.tar.gz openshift-5090e93a9af43996407dc36f6c2a549d7e83d787.tar.bz2 openshift-5090e93a9af43996407dc36f6c2a549d7e83d787.tar.xz openshift-5090e93a9af43996407dc36f6c2a549d7e83d787.zip |
Allows it to run on OSX
- Versions of ruby ported on OSX requires escaping of hyphens in regexp
- Adds documentation on packages required by OSX to run openshift-online-ansible on OSX
Diffstat (limited to 'lib/aws_command.rb')
-rw-r--r-- | lib/aws_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/aws_command.rb b/lib/aws_command.rb index 1205fd5f7..17f33fbed 100644 --- a/lib/aws_command.rb +++ b/lib/aws_command.rb @@ -114,7 +114,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 |