hotdog 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91215663a09880593d00a5067b5f65ce3cb4b288
4
- data.tar.gz: e840f3478257b84e516d4af7f6c4464cdaa7306b
3
+ metadata.gz: e940923c28e0c281c17da003c2e2d3e0135efe78
4
+ data.tar.gz: 54316787a42899bdfb71c7900eebe7b600dbabe4
5
5
  SHA512:
6
- metadata.gz: 8beeb9c046d7467a48025aa7156f9b8e04c19f3923eb544086b5bec52f7cc0afddae29cad26cd699803fe0046c623e0179159917a3dc5e41b2996a0b39ae8246
7
- data.tar.gz: 199c17a2d104dbb24c5135ac2cc180b9a26f594b1d2aaf9eb1870f3ba6e7b209a27b6b08d061c34598877ed385b4accb505d35ee3543f79f95554668b56b5695
6
+ metadata.gz: ed99d65cefb7ba8ee9a99f8d63855fc6fb234bda876a92bab531dd29574ffdea86c200a4a26e890f7fe18d17e7b8ec02164a69c6929cd12af6b37b5b810c0715
7
+ data.tar.gz: 5bf40e301f0567576028475d95017088bff3547ab0a55da2430de8ea9fcdb849ae74202767751a8fb744b5a7505663afb2b842328ee23f5d0ad7daf30ea26993
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Hotdog
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
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.2
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-09 00:00:00.000000000 Z
11
+ date: 2015-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler