manageiq-ssh-util 0.1.0 → 0.1.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
  SHA256:
3
- metadata.gz: 58c774eec4755352ba4daf38939f8ab0d35ea8bd110eb34d7b772d0fdbecb574
4
- data.tar.gz: b5ed3ef9f3c97ff0a998816db02442f44a98f6d648444138b5ad0f3759731763
3
+ metadata.gz: 4ecaad4072d9f393a93098614ffb9d627f6d51ce9a753fd07eb8bbffdcdd4a9c
4
+ data.tar.gz: b87bd646f18da7706ac8d0e541f8d2a2654d684e4125ebde29a842a07ddb7b5e
5
5
  SHA512:
6
- metadata.gz: af4a43b882154267c45a17c797c024f21aa75c6cd15316778e1d84bd159dc3dafffabfe8eca047efa1041b04b1c35479d7f114885b277533721efb1417202107
7
- data.tar.gz: 360b674b19f26b8438d6d2d8857413ac189ef93c1e0cd3b86bc18f408d4bc1627f462667339c96fa59e5a9ce9c1cec7377634b14aefd44a492294fbb187ef057
6
+ metadata.gz: 9f11c6560fda72f8d4f1acb74fc4701cca54aa012cd43a4dba56e25601bd631bf83d9f802159ac0f36fdec8c9c358bc2e51b23142a6bd262827c3c1f71831ca1
7
+ data.tar.gz: 406e6ca233ecdd50c063d371c829621206c583cc62f2d5bf4cb27198c57472acb20aedb7c172a1073fd3f290399fe851b13dd0255b96c8c66631205815ecdb20
@@ -0,0 +1,7 @@
1
+ ## 0.1.1 - May 4, 2020
2
+ ### Changed
3
+ - Removed custom ManageIQ exceptions. Now just uses standard net-ssh exceptions. [#4](https://github.com/ManageIQ/manageiq-ssh-util/pull/4)
4
+ - Fixed a bug where the password variable was not getting set properly. [#5](https://github.com/ManageIQ/manageiq-ssh-util/pull/5)
5
+
6
+ ## 0.1.0 - January 28, 2020
7
+ - Initial release, pulled from manageiq-gems-pending.
@@ -64,7 +64,7 @@ module ManageIQ
64
64
  :use_agent => false
65
65
  }.merge(options)
66
66
 
67
- options[:password] = password if password
67
+ @options[:password] = password if password
68
68
 
69
69
  # Pull our custom keys out of the hash because the SSH initializer will complain
70
70
  @remember_host = @options.delete(:remember_host)
@@ -339,8 +339,7 @@ module ManageIQ
339
339
  # remaining options are passed normally.
340
340
  #
341
341
  # This method is functionally identical to the following code, except that it
342
- # yields itself (and nil) and re-raises certain Net::SSH exceptions as
343
- # ManageIQ exceptions.
342
+ # yields itself (and nil).
344
343
  #
345
344
  # ManageIQ::SSH::Util.new(host, remote_user, remote_password, {:su_user => su_user, :su_password => su_password})
346
345
  #
@@ -348,10 +347,6 @@ module ManageIQ
348
347
  options[:su_user], options[:su_password] = su_user, su_password
349
348
  ssu = new(host, remote_user, remote_password, options)
350
349
  yield(ssu, nil)
351
- rescue Net::SSH::AuthenticationFailed
352
- raise MiqException::MiqInvalidCredentialsError
353
- rescue Net::SSH::HostKeyMismatch
354
- raise MiqException::MiqSshUtilHostKeyMismatch
355
350
  end
356
351
 
357
352
  # Executes the provided +cmd+ using the exec or suexec method, depending on
@@ -2,7 +2,7 @@ module ManageIQ
2
2
  class SSH
3
3
  class Util
4
4
  # The version of the manageiq-ssh-util library
5
- VERSION = '0.1.0'.freeze
5
+ VERSION = '0.1.1'.freeze
6
6
  end
7
7
  end
8
8
  end
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-28 00:00:00.000000000 Z
11
+ date: 2020-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -114,6 +114,7 @@ executables: []
114
114
  extensions: []
115
115
  extra_rdoc_files: []
116
116
  files:
117
+ - CHANGELOG.md
117
118
  - LICENSE.txt
118
119
  - README.md
119
120
  - Rakefile