manageiq-ssh-util 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +36 -0
- data/README.md +5 -0
- data/lib/manageiq/ssh/util/version.rb +1 -1
- data/lib/manageiq/ssh/util.rb +3 -7
- metadata +62 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bda3f5af82210147054d55c54149c5a0bcd1eef1d9033ef88ab76046cc45a2d1
|
4
|
+
data.tar.gz: fc50a5a7aed0dad93fe97e4285da519a1337f02cd8bfcc04904ce41d4e5e79bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2b8bc96640b1ef8cc4ff0cc9aadf93724aa5b572a86c7d31842b9c97b60094122973bfa1be79a815d2cfae5fe9626b2880f3fdf90468fa8a840dd6128afc01d
|
7
|
+
data.tar.gz: 77bec7ca23ae8737b149748907a9007c6c83814c2d4d4ba36c38b8931cfbe57b89d1534948183a9a618519dce30fc04673f7ae0bf995012442eea75a12c8310d
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## Unreleased
|
4
|
+
|
5
|
+
## [0.2.0] - 2024-05-01
|
6
|
+
### Removed
|
7
|
+
- BREAKING: Drop support for Ruby 2.5 [[#21]](https://github.com/ManageIQ/manageiq-ssh-util/pull/21)
|
8
|
+
|
9
|
+
### Changed
|
10
|
+
- Bump net-ssh for OpenSSL 3.0 support [[#21]](https://github.com/ManageIQ/manageiq-ssh-util/pull/21)
|
11
|
+
- Update paambaati/codeclimate-action action to v6 [[#22]](https://github.com/ManageIQ/manageiq-ssh-util/pull/22)
|
12
|
+
- Add renovate.json [[#15]](https://github.com/ManageIQ/manageiq-ssh-util/pull/15)
|
13
|
+
- Update codeclimate channel to the latest in manageiq-style [[#19]](https://github.com/ManageIQ/manageiq-ssh-util/pull/19)
|
14
|
+
- Test with ruby 3.1 and 3.0 [[#18]](https://github.com/ManageIQ/manageiq-ssh-util/pull/18)
|
15
|
+
- Update actions/checkout version to v4 [[#17]](https://github.com/ManageIQ/manageiq-ssh-util/pull/17)
|
16
|
+
- Update GitHub Actions versions [[#16]](https://github.com/ManageIQ/manageiq-ssh-util/pull/16)
|
17
|
+
- Add timeout-minutes to setup-ruby job [[#14]](https://github.com/ManageIQ/manageiq-ssh-util/pull/14)
|
18
|
+
- Switch to GitHub Actions, Handle newer version of activesupport [[#13]](https://github.com/ManageIQ/manageiq-ssh-util/pull/13)
|
19
|
+
- Add .whitesource configuration file [[#12]](https://github.com/ManageIQ/manageiq-ssh-util/pull/12)
|
20
|
+
- Update manageiq-style [[#10]](https://github.com/ManageIQ/manageiq-ssh-util/pull/10)
|
21
|
+
- Add badges to readme [[#9]](https://github.com/ManageIQ/manageiq-ssh-util/pull/9)
|
22
|
+
- Remove codeclimate-test-reporter [[#8]](https://github.com/ManageIQ/manageiq-ssh-util/pull/8)
|
23
|
+
- Switch to manageiq-style [[#7]](https://github.com/ManageIQ/manageiq-ssh-util/pull/7)
|
24
|
+
|
25
|
+
## [0.1.1] - 2020-05-04
|
26
|
+
### Changed
|
27
|
+
- Removed custom ManageIQ exceptions. Now just uses standard net-ssh exceptions. [[#4]](https://github.com/ManageIQ/manageiq-ssh-util/pull/4)
|
28
|
+
- Fixed a bug where the password variable was not getting set properly. [[#5]](https://github.com/ManageIQ/manageiq-ssh-util/pull/5)
|
29
|
+
|
30
|
+
## [0.1.0] - 2020-01-28
|
31
|
+
- Initial release, pulled from manageiq-gems-pending.
|
32
|
+
|
33
|
+
[Unreleased]: https://github.com/ManageIQ/manageiq-ssh-util/compare/v0.2.0...HEAD
|
34
|
+
[0.2.0]: https://github.com/ManageIQ/manageiq-ssh-util/compare/v0.1.1...v0.2.0
|
35
|
+
[0.1.1]: https://github.com/ManageIQ/manageiq-ssh-util/compare/v0.1.0...v0.1.1
|
36
|
+
[0.1.0]: https://github.com/ManageIQ/manageiq-ssh-util/tree/v0.1.0
|
data/README.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
manageiq-ssh-util
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/manageiq-ssh-util.svg)](http://badge.fury.io/rb/manageiq-ssh-util)
|
4
|
+
[![CI](https://github.com/ManageIQ/manageiq-ssh-util/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/manageiq-ssh-util/actions/workflows/ci.yaml)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/ManageIQ/manageiq-ssh-util.svg)](https://codeclimate.com/github/ManageIQ/manageiq-ssh-util)
|
6
|
+
[![Test Coverage](https://codeclimate.com/github/ManageIQ/manageiq-ssh-util/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/manageiq-ssh-util/coverage)
|
7
|
+
|
3
8
|
The manageiq-ssh-util library is a wrapper library around net-ssh. Its
|
4
9
|
main benefit is that it automatically handles channels and logging for
|
5
10
|
various states when running remote commands. It also automatically handles
|
data/lib/manageiq/ssh/util.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'net/ssh'
|
2
2
|
require 'net/sftp'
|
3
3
|
require 'tempfile'
|
4
|
+
require 'active_support'
|
4
5
|
require 'active_support/core_ext/object/blank'
|
5
6
|
|
6
7
|
module ManageIQ
|
@@ -64,7 +65,7 @@ module ManageIQ
|
|
64
65
|
:use_agent => false
|
65
66
|
}.merge(options)
|
66
67
|
|
67
|
-
options[:password] = password if password
|
68
|
+
@options[:password] = password if password
|
68
69
|
|
69
70
|
# Pull our custom keys out of the hash because the SSH initializer will complain
|
70
71
|
@remember_host = @options.delete(:remember_host)
|
@@ -339,8 +340,7 @@ module ManageIQ
|
|
339
340
|
# remaining options are passed normally.
|
340
341
|
#
|
341
342
|
# This method is functionally identical to the following code, except that it
|
342
|
-
# yields itself (and nil)
|
343
|
-
# ManageIQ exceptions.
|
343
|
+
# yields itself (and nil).
|
344
344
|
#
|
345
345
|
# ManageIQ::SSH::Util.new(host, remote_user, remote_password, {:su_user => su_user, :su_password => su_password})
|
346
346
|
#
|
@@ -348,10 +348,6 @@ module ManageIQ
|
|
348
348
|
options[:su_user], options[:su_password] = su_user, su_password
|
349
349
|
ssu = new(host, remote_user, remote_password, options)
|
350
350
|
yield(ssu, nil)
|
351
|
-
rescue Net::SSH::AuthenticationFailed
|
352
|
-
raise MiqException::MiqInvalidCredentialsError
|
353
|
-
rescue Net::SSH::HostKeyMismatch
|
354
|
-
raise MiqException::MiqSshUtilHostKeyMismatch
|
355
351
|
end
|
356
352
|
|
357
353
|
# Executes the provided +cmd+ using the exec or suexec method, depending on
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manageiq-ssh-util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Developers
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -25,47 +25,87 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: bcrypt_pbkdf
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.0'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '2.0'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '1.0'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '2.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: ed25519
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.2'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '2.0'
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '1.2'
|
64
|
+
- - "<"
|
39
65
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
66
|
+
version: '2.0'
|
41
67
|
- !ruby/object:Gem::Dependency
|
42
68
|
name: net-sftp
|
43
69
|
requirement: !ruby/object:Gem::Requirement
|
44
70
|
requirements:
|
45
71
|
- - "~>"
|
46
72
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
73
|
+
version: '4.0'
|
48
74
|
type: :runtime
|
49
75
|
prerelease: false
|
50
76
|
version_requirements: !ruby/object:Gem::Requirement
|
51
77
|
requirements:
|
52
78
|
- - "~>"
|
53
79
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
80
|
+
version: '4.0'
|
55
81
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
82
|
+
name: net-ssh
|
57
83
|
requirement: !ruby/object:Gem::Requirement
|
58
84
|
requirements:
|
59
85
|
- - "~>"
|
60
86
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
62
|
-
type: :
|
87
|
+
version: '7.2'
|
88
|
+
type: :runtime
|
63
89
|
prerelease: false
|
64
90
|
version_requirements: !ruby/object:Gem::Requirement
|
65
91
|
requirements:
|
66
92
|
- - "~>"
|
67
93
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
94
|
+
version: '7.2'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: manageiq-style
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
69
109
|
- !ruby/object:Gem::Dependency
|
70
110
|
name: rake
|
71
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,20 +140,21 @@ dependencies:
|
|
100
140
|
requirements:
|
101
141
|
- - ">="
|
102
142
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
143
|
+
version: 0.21.2
|
104
144
|
type: :development
|
105
145
|
prerelease: false
|
106
146
|
version_requirements: !ruby/object:Gem::Requirement
|
107
147
|
requirements:
|
108
148
|
- - ">="
|
109
149
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
150
|
+
version: 0.21.2
|
111
151
|
description: ManageIQ wrapper library for net-ssh
|
112
|
-
email:
|
152
|
+
email:
|
113
153
|
executables: []
|
114
154
|
extensions: []
|
115
155
|
extra_rdoc_files: []
|
116
156
|
files:
|
157
|
+
- CHANGELOG.md
|
117
158
|
- LICENSE.txt
|
118
159
|
- README.md
|
119
160
|
- Rakefile
|
@@ -124,7 +165,7 @@ homepage: https://github.com/ManageIQ/manageiq-ssh-util
|
|
124
165
|
licenses:
|
125
166
|
- Apache-2.0
|
126
167
|
metadata: {}
|
127
|
-
post_install_message:
|
168
|
+
post_install_message:
|
128
169
|
rdoc_options: []
|
129
170
|
require_paths:
|
130
171
|
- lib
|
@@ -132,15 +173,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
173
|
requirements:
|
133
174
|
- - ">="
|
134
175
|
- !ruby/object:Gem::Version
|
135
|
-
version: '
|
176
|
+
version: '2.6'
|
136
177
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
178
|
requirements:
|
138
179
|
- - ">="
|
139
180
|
- !ruby/object:Gem::Version
|
140
181
|
version: '0'
|
141
182
|
requirements: []
|
142
|
-
rubygems_version: 3.
|
143
|
-
signing_key:
|
183
|
+
rubygems_version: 3.5.9
|
184
|
+
signing_key:
|
144
185
|
specification_version: 4
|
145
186
|
summary: ManageIQ wrapper library for net-ssh
|
146
187
|
test_files: []
|