oxidized-ssh 0.1.3 → 0.1.3.1

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: fb9c05418ae189e693908346e09d671734bedfdc
4
- data.tar.gz: ba86e2d4552c041a1bc303428ff8e48ca74a74e0
3
+ metadata.gz: bcc185b0420ff278b2b9782255b0036beb264fce
4
+ data.tar.gz: 868d41499ff0babbdd678874be8642bf23a8a5ba
5
5
  SHA512:
6
- metadata.gz: 74f01e3bf948213dd0d672c643c2372fac701d14cf1ceec805390a50cf1419234b3da8103582246fbe0d6b7ba48cb56c0b5c8f5d622898065be5e5eb2de6873c
7
- data.tar.gz: ea59dbda3fee12fcda1f1b74985cf47ecffe7fb7a57c597ae984da03a6ed52d10e74978a08523eccbfa5a2533bb31d767e57b302141fea0a233182da11fc0e53
6
+ metadata.gz: 743a57863c231902ab82a4cadefe21c1c7d6412c23cf1638c0e0ed0e63d9cae533b9ba7fdfdf20d97fc32cce2674fa5d190dcafca2b56b2e6a7181f92e417611
7
+ data.tar.gz: 23f23c7bcfc4fd3d5f4c41c1902aa0f9d7301d081c9a14fd92d96f44066cbabdb83c4b0d334853e35fd06f7f808b29b6390393caf7c24f1639882ec3b37a03d9
data/lib/oxidized/ssh.rb CHANGED
@@ -22,12 +22,13 @@ module Oxidized
22
22
  @port = options[:port] ||= 22
23
23
  @output = String.new
24
24
  @logger = options[:logger] ||= Logger.new(STDOUT)
25
+ @auth_methods = options[:auth_methods] ||= ["publickey", "hostbased", "password"]
25
26
  @expectation_handler = options[:expectation_handler]
26
27
  end
27
28
 
28
29
  def start
29
30
  raise "MissingSSHLibrary" if !defined? Net::SSH
30
- @connection = Net::SSH.start(@ip, @username, password: @password, verbose: @verbose, port: @port)
31
+ @connection = Net::SSH.start(@ip, @username, password: @password, verbose: @verbose, port: @port, auth_methods: @auth_methods)
31
32
  return yield self if block_given?
32
33
  return (@connection and not @connection.closed?)
33
34
  end
@@ -1,5 +1,5 @@
1
1
  module Oxidized
2
2
  module Ssh
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxidized-ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Schylar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-23 00:00:00.000000000 Z
11
+ date: 2017-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh