sshake 2.0.0 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95a0f6a6db803ff62826997e18e0b5d5ec81977046833bc32c10e29ebdbfd883
4
- data.tar.gz: 8a2c9aa526b96827b3d50d25cd8b479bf3310eb6857822790410e79a38ac8423
3
+ metadata.gz: 0b0227ad150af036e9e0690dc6386ff569c523766bc177e55cd4774b13e4af50
4
+ data.tar.gz: 350de20e2172024878b5b3e7dd2a6cc47eb620d459a3094c973a09cc766f0ac0
5
5
  SHA512:
6
- metadata.gz: dc53e93b8e027f96c6078acb1626a056512dbf932a5650a1e4e4dfa53d28d72c219cff4acb392ca3d46fcbd5cd136aa7114b3edca27884817f86ace0648ec0c5
7
- data.tar.gz: 25e70b953ed507800fa3f1a0531c926023d383f8a73caf8de201e12db2b4dd4e864af0080bf657952ad00112528572368e6c9eced39adf254858897e9487a6e3
6
+ metadata.gz: 56f1bebcf07705ed634e2e42ddd1fad9a0eb96ded95393808e7e8c709819c6876aa475c28d1dcb41255857f78396420812353132bd011c8c1a350913dc7d378e
7
+ data.tar.gz: f2c0e6e0879c7fa6507179b807b46602bad6d0d1aa96368fe2380262ae4d6d03bcb81d10d86b6cb06686ed3b5741718e32d1438a927cb459bb22bf4b5f7dfd72
@@ -23,7 +23,7 @@ module SSHake
23
23
  # @return [Boolean]
24
24
  attr_accessor :raise_on_error
25
25
 
26
- def initialize(*_args, klogger: nil)
26
+ def initialize(*_args, klogger: nil, **_options)
27
27
  @id = SecureRandom.hex(4)
28
28
  @klogger = klogger || SSHake.klogger
29
29
  end
@@ -23,10 +23,10 @@ module SSHake
23
23
  # Create a new SSH session
24
24
  #
25
25
  # @return [Sshake::Session]
26
- def initialize(host, username = nil, **options)
26
+ def initialize(host, user = nil, **options)
27
27
  super
28
28
  @host = host
29
- @username = username
29
+ @user = user
30
30
  @session_options = options
31
31
  @session_options.delete(:klogger)
32
32
  end
@@ -50,7 +50,7 @@ module SSHake
50
50
  # @return [void]
51
51
  def connect
52
52
  klogger.debug 'Connecting', id: @id, host: @host, user: @user, port: @session_options[:port] || 22
53
- @session = Net::SSH.start(@host, user, @session_options)
53
+ @session = Net::SSH.start(@host, user, **@session_options)
54
54
  true
55
55
  end
56
56
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SSHake
4
4
 
5
- VERSION = '2.0.0'
5
+ VERSION = '2.0.2'
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sshake
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke