hotdog 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hotdog/commands/ssh.rb +12 -0
- data/lib/hotdog/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e940923c28e0c281c17da003c2e2d3e0135efe78
|
4
|
+
data.tar.gz: 54316787a42899bdfb71c7900eebe7b600dbabe4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed99d65cefb7ba8ee9a99f8d63855fc6fb234bda876a92bab531dd29574ffdea86c200a4a26e890f7fe18d17e7b8ec02164a69c6929cd12af6b37b5b810c0715
|
7
|
+
data.tar.gz: 5bf40e301f0567576028475d95017088bff3547ab0a55da2430de8ea9fcdb849ae74202767751a8fb744b5a7505663afb2b842328ee23f5d0ad7daf30ea26993
|
data/lib/hotdog/commands/ssh.rb
CHANGED
@@ -16,6 +16,12 @@ module Hotdog
|
|
16
16
|
options[:identity_file] = nil
|
17
17
|
options[:forward_agent] = false
|
18
18
|
|
19
|
+
optparse.on("-D BIND_ADDRESS", "Specifies a local \"dynamic\" application-level port forwarding") do |bind_address|
|
20
|
+
options[:dynamic_port_forward] = bind_address
|
21
|
+
end
|
22
|
+
optparse.on("-L BIND_ADDRESS", "Specifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side") do |bind_address|
|
23
|
+
options[:port_forward] = bind_address
|
24
|
+
end
|
19
25
|
optparse.on("-n", "--index INDEX", "Use this index of host if multiple servers are found", Integer) do |index|
|
20
26
|
options[:index] = index
|
21
27
|
end
|
@@ -94,6 +100,12 @@ module Hotdog
|
|
94
100
|
if options[:forward_agent]
|
95
101
|
base_cmdline << "-A"
|
96
102
|
end
|
103
|
+
if options[:dynamic_port_forward]
|
104
|
+
base_cmdline << "-D" << options[:dynamic_port_forward]
|
105
|
+
end
|
106
|
+
if options[:port_forward]
|
107
|
+
base_cmdline << "-L" << options[:port_forward]
|
108
|
+
end
|
97
109
|
if options[:identity_file]
|
98
110
|
base_cmdline << "-i" << options[:identity_file]
|
99
111
|
end
|
data/lib/hotdog/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hotdog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yamashita Yuu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|