bcome 0.6.9 → 0.6.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bcome/version.rb +1 -1
  3. data/lib/ssh.rb +4 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4b9ed597a273b6b2583fdbbe47fcf39e5f364d7
4
- data.tar.gz: c1435dd0a9b8c642b5f685bd5d0ca691843ae4ad
3
+ metadata.gz: 52610d7514cc0f00c5fae318ec4ea4df718669fb
4
+ data.tar.gz: 20843e08dc83bc72b4c9ffed7bb73e25d59e6dd3
5
5
  SHA512:
6
- metadata.gz: 77f31f5fe23d0a3379658c8344f6ff267509d245d83130ea5a21074d6a9a4af66318bc365f37c8325472ccd216459789859a595cae4e32b73765bfe43657c990
7
- data.tar.gz: dc8b03b7f322159c2e082df45ebbbbde4dec3f21a813d2af1953317066b974d07dea0ef1096be5753618cfef85ac6130e1eb9dce626f03f2e8faa2469600ef19
6
+ metadata.gz: 333c1922e067e4c8175d351134e6613add4880e7ac7eb46ee41c3adc2267f90895f29b11d1837d99f64ffc1d7ef768f5273cb3a5806ec3e438e5b55ce91da15f
7
+ data.tar.gz: 95274dbe4e7d4774386f0183049e84c0a0d96bd5c9ee083533dd56422ea8a0d663758f096728441eb46d35e75cc114e5820b489b3dd8f70ff9a0bb5d1379aa67
@@ -1,3 +1,3 @@
1
1
  module Bcome
2
- VERSION = "0.6.9"
2
+ VERSION = "0.6.10"
3
3
  end
data/lib/ssh.rb CHANGED
@@ -21,7 +21,10 @@ class ::Bcome::Ssh
21
21
  ssh_keys = command.ssh_keys
22
22
  proxy = command.proxy
23
23
 
24
- ::Net::SSH.start(instance.ip_address, ssh_user, :proxy => proxy, :keys => ssh_keys, :paranoid => false) do |ssh|
24
+ net_ssh_params = { :keys => ssh_keys, :paranoid => false }
25
+ net_ssh_params[:proxy] = proxy if proxy
26
+
27
+ ::Net::SSH.start(instance.ip_address, ssh_user, net_ssh_params) do |ssh|
25
28
  ssh_exec!(ssh, command)
26
29
  output_append("\n(#{instance.identifier})$".cyan + ">\s#{command.command} (#{command.pretty_result})\n")
27
30
  output_append("#{command.output}")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.9
4
+ version: 0.6.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Roderick (Webzakimbo)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-13 00:00:00.000000000 Z
11
+ date: 2017-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk