Skip to content

Commit

Permalink
Bump to 0.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor MacDougall committed Feb 14, 2017
1 parent 9227d94 commit 03aeb0d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,11 @@ secret = "abcd1234"
```
omc help
```

Accepted ssh options:
```
-R 3000:localhost:3001 # Forwards port 3000 on the remote host to port 3001 on the localhost
-A # Forward agent
```

Please the the ssh help for more detail.
8 changes: 5 additions & 3 deletions lib/omc/stack_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ def bastion

def default_ssh_args
[].tap do |args|
proxy_command = "ProxyCommand ssh -W %h:%p #{bastion.host}"
proxy_command += " -R #{@remote_forward}" if @remote_forward
args.push("-o", proxy_command) if bastion
if (bastion)
proxy_command = "ProxyCommand ssh -W %h:%p #{bastion.host}"
proxy_command += " -R #{@remote_forward}" if @remote_forward
args.push("-o", proxy_command)
end
args.push("-A") if @forward_agent
args.push("-R #{@remote_forward}") if @remote_forward
end
Expand Down
2 changes: 1 addition & 1 deletion lib/omc/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Omc
VERSION = '0.0.9'
VERSION = '0.0.10'
end

0 comments on commit 03aeb0d

Please sign in to comment.