sshkit 1.11.0 → 1.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -1
- data/README.md +10 -10
- data/lib/sshkit/backends/netssh.rb +8 -2
- data/lib/sshkit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e19c67f924ef3a2dd33905c2ced117daa369d81d
|
4
|
+
data.tar.gz: e15d65a99e71fa5b1370cc338271751c99c2009f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fb1764bbe94f71bd91ba99a7c4350f0e3623823f186389be3c053840cfe2b0ae7a144fd9d552c26da2e95fd69ce5c69879edc4696bd50c0e95dc5e6f1127ec8
|
7
|
+
data.tar.gz: aaf509fe9fcb25dbf545bccefd220f1e99241d23c72fa55241c721a127080b54db5427d771caf26a9f97598c3d70a835d9413b30514a4c3f900aa0a943baff73
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,14 @@ appear at the top.
|
|
8
8
|
* Add your entries below here, remember to credit yourself however you want
|
9
9
|
to be credited!
|
10
10
|
|
11
|
+
## [1.11.1][] (2016-06-17)
|
12
|
+
|
13
|
+
### Bug fixes
|
14
|
+
|
15
|
+
* Fixed a regression in 1.11.0 that would cause
|
16
|
+
`ArgumentError: invalid option(s): known_hosts` in some older versions of
|
17
|
+
net-ssh. @byroot [#357](https://github.com/capistrano/sshkit/issues/357)
|
18
|
+
|
11
19
|
## [1.11.0][] (2016-06-14)
|
12
20
|
|
13
21
|
### Bug fixes
|
@@ -629,5 +637,6 @@ version `0.0.5`.
|
|
629
637
|
|
630
638
|
First release.
|
631
639
|
|
632
|
-
[Unreleased]: https://github.com/capistrano/sshkit/compare/v1.11.
|
640
|
+
[Unreleased]: https://github.com/capistrano/sshkit/compare/v1.11.1...HEAD
|
641
|
+
[1.11.1]: https://github.com/capistrano/sshkit/compare/v1.11.0...v1.11.1
|
633
642
|
[1.11.0]: https://github.com/capistrano/sshkit/compare/v1.10.0...v1.11.0
|
data/README.md
CHANGED
@@ -259,7 +259,7 @@ desirable.
|
|
259
259
|
first argument before attempting to find it in the *command map*.
|
260
260
|
|
261
261
|
## Interactive commands
|
262
|
-
> (
|
262
|
+
> (Added in version 1.8.0)
|
263
263
|
|
264
264
|
By default, commands against remote servers are run in a *non-login, non-interactive* ssh session.
|
265
265
|
This is by design, to try and isolate the environment and make sure that things work as expected,
|
@@ -335,7 +335,7 @@ You can also pass a Proc object to map the output line from the server:
|
|
335
335
|
execute(:passwd, interaction_handler: lambda { |server_data|
|
336
336
|
case server_data
|
337
337
|
when '(current) UNIX password: '
|
338
|
-
"old_pw\n"
|
338
|
+
"old_pw\n"
|
339
339
|
when /(Enter|Retype) new UNIX password: /
|
340
340
|
"new_pw\n"
|
341
341
|
end
|
@@ -362,14 +362,14 @@ in response. This can be helpful if you don't know exactly what the server is se
|
|
362
362
|
|
363
363
|
```ruby
|
364
364
|
# Start with this and run your script
|
365
|
-
execute(:unfamiliar_command, MappingInteractionHandler.new({}, :
|
366
|
-
#
|
367
|
-
#
|
368
|
-
|
369
|
-
#
|
370
|
-
execute(:unfamiliar_command, MappingInteractionHandler.new(
|
371
|
-
{"Please type your input:\r\n" => "Some input\n"}
|
372
|
-
:
|
365
|
+
execute(:unfamiliar_command, interaction_handler: MappingInteractionHandler.new({}, :info))
|
366
|
+
# INFO log => Unable to find interaction handler mapping for stdout:
|
367
|
+
# "Please type your input:\r\n" so no response was sent"
|
368
|
+
|
369
|
+
# Add missing mapping:
|
370
|
+
execute(:unfamiliar_command, interaction_handler: MappingInteractionHandler.new(
|
371
|
+
{"Please type your input:\r\n" => "Some input\n"},
|
372
|
+
:info
|
373
373
|
))
|
374
374
|
```
|
375
375
|
|
@@ -33,8 +33,14 @@ module SSHKit
|
|
33
33
|
|
34
34
|
private
|
35
35
|
|
36
|
-
|
37
|
-
|
36
|
+
if Net::SSH::VALID_OPTIONS.include?(:known_hosts)
|
37
|
+
def default_options
|
38
|
+
@default_options ||= {known_hosts: SSHKit::Backend::Netssh::KnownHosts.new}
|
39
|
+
end
|
40
|
+
else
|
41
|
+
def default_options
|
42
|
+
@default_options ||= {}
|
43
|
+
end
|
38
44
|
end
|
39
45
|
end
|
40
46
|
|
data/lib/sshkit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sshkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Hambley
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-06-
|
12
|
+
date: 2016-06-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: net-ssh
|