capistrano3-consul 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/consul/version.rb +1 -1
- data/lib/capistrano/consul.rb +1 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97e4dc5a48c3b4441fe9ea8cb4ec5ebdeed5add2
|
4
|
+
data.tar.gz: c2ffd16cc1f601f0e9dc4f824392549f24f92d19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48d05c09769887b3821b9fbc4994520bc5f4da5a4db3084d5ac84f1712adaca2ed6e2e1bbd323230e463eeddfbb64a6b139a921971e4b2895c7cebfbae703a83
|
7
|
+
data.tar.gz: f76d2c61d78f3d3acddfc3e25b08ee0eadcb43f309e13f55266e244e4b69c21460626f9f0ad149ae12ab6bd313085c159eba5b273207d8b98f3ab9a6469f29e3
|
data/lib/capistrano/consul.rb
CHANGED
@@ -10,14 +10,10 @@ module Capistrano
|
|
10
10
|
return false unless @url
|
11
11
|
@ssh_gateway = fetch(:consul_ssh_gateway)
|
12
12
|
if @ssh_gateway
|
13
|
-
@gateway = Net::SSH::Gateway.new(@ssh_gateway[:host], @ssh_gateway[:username], @ssh_gateway[:options])
|
13
|
+
@gateway = Net::SSH::Gateway.new(@ssh_gateway[:host], @ssh_gateway[:username], @ssh_gateway[:options] || {})
|
14
14
|
@gateway.open('127.0.0.1', @ssh_gateway[:port], @ssh_gateway[:port])
|
15
15
|
end
|
16
16
|
|
17
|
-
if @use_ssh_proxy
|
18
|
-
@ssh_options = fetch(:ssh_options)
|
19
|
-
return false unless @ssh_options[:proxy]
|
20
|
-
end
|
21
17
|
Diplomat.configure do |config|
|
22
18
|
config.url = @url
|
23
19
|
end
|