canals 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/canals/cli.rb +11 -9
- data/lib/canals/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: 7c5a0098eb37586fc451b6ded6e126205695f128
|
4
|
+
data.tar.gz: cdda79e8d846034aba75aec28266cedd3d1ff029
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c6825603f60c7768e126a119b838fc2c5bbf47087dacf956b1154cec4ed0aaec69b49f8ac92206e8351d4398e8108976c67ba125b7b4f914cd841843ed95a42
|
7
|
+
data.tar.gz: 80c3806fd808fffe57d718d04eb277ebd5ea2977b484f7bf5117774d1baef42478f51972d38760216bbe6da3893bf9efab9d977a876051f8d15333544b7388c6
|
data/lib/canals/cli.rb
CHANGED
@@ -21,9 +21,10 @@ module Canals
|
|
21
21
|
end
|
22
22
|
|
23
23
|
desc 'create NAME REMOTE_HOST REMOTE_PORT [LOCAL_PORT]', "Create a new tunnel; if LOCAL_PORT isn't supplied, REMOTE_PORT will be used as LOCAL"
|
24
|
-
method_option :env,
|
25
|
-
method_option :hostname,
|
26
|
-
method_option :user,
|
24
|
+
method_option :env, :type => :string, :desc => "The proxy environment to use"
|
25
|
+
method_option :hostname, :type => :string, :desc => "The proxy host we will use to connect through"
|
26
|
+
method_option :user, :type => :string, :desc => "The user for the ssh proxy host"
|
27
|
+
method_option :bind_address, :type => :string, :desc => "The bind address to connect to"
|
27
28
|
def create(name, remote_host, remote_port, local_port=nil)
|
28
29
|
opts = {"name" => name, "remote_host" => remote_host, "remote_port" => remote_port, "local_port" => local_port}.merge(options)
|
29
30
|
opts = Canals::CanalOptions.new(opts)
|
@@ -32,12 +33,13 @@ module Canals
|
|
32
33
|
end
|
33
34
|
|
34
35
|
desc 'update NAME', "Update an existing tunnel"
|
35
|
-
method_option :remote_host,
|
36
|
-
method_option :remote_port,
|
37
|
-
method_option :local_port,
|
38
|
-
method_option :env,
|
39
|
-
method_option :hostname,
|
40
|
-
method_option :user,
|
36
|
+
method_option :remote_host, :type => :string, :desc => "The remote host of the tunnel"
|
37
|
+
method_option :remote_port, :type => :string, :desc => "The remote port of the tunnel"
|
38
|
+
method_option :local_port, :type => :string, :desc => "The local port to use"
|
39
|
+
method_option :env, :type => :string, :desc => "The proxy environment to use"
|
40
|
+
method_option :hostname, :type => :string, :desc => "The proxy host we will use to connect through"
|
41
|
+
method_option :user, :type => :string, :desc => "The user for the ssh proxy host"
|
42
|
+
method_option :bind_address, :type => :string, :desc => "The bind address to connect to"
|
41
43
|
def update(name)
|
42
44
|
tunnel = Canals.repository.get(name)
|
43
45
|
if tunnel.nil?
|
data/lib/canals/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: canals
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ido Abramovich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|