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 +4 -4
- data/lib/sshake/base_session.rb +1 -1
- data/lib/sshake/session.rb +3 -3
- data/lib/sshake/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b0227ad150af036e9e0690dc6386ff569c523766bc177e55cd4774b13e4af50
|
4
|
+
data.tar.gz: 350de20e2172024878b5b3e7dd2a6cc47eb620d459a3094c973a09cc766f0ac0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56f1bebcf07705ed634e2e42ddd1fad9a0eb96ded95393808e7e8c709819c6876aa475c28d1dcb41255857f78396420812353132bd011c8c1a350913dc7d378e
|
7
|
+
data.tar.gz: f2c0e6e0879c7fa6507179b807b46602bad6d0d1aa96368fe2380262ae4d6d03bcb81d10d86b6cb06686ed3b5741718e32d1438a927cb459bb22bf4b5f7dfd72
|
data/lib/sshake/base_session.rb
CHANGED
data/lib/sshake/session.rb
CHANGED
@@ -23,10 +23,10 @@ module SSHake
|
|
23
23
|
# Create a new SSH session
|
24
24
|
#
|
25
25
|
# @return [Sshake::Session]
|
26
|
-
def initialize(host,
|
26
|
+
def initialize(host, user = nil, **options)
|
27
27
|
super
|
28
28
|
@host = host
|
29
|
-
@
|
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,
|
53
|
+
@session = Net::SSH.start(@host, user, **@session_options)
|
54
54
|
true
|
55
55
|
end
|
56
56
|
|
data/lib/sshake/version.rb
CHANGED