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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/manageiq/ssh/util.rb +2 -7
- data/lib/manageiq/ssh/util/version.rb +1 -1
- metadata +3 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 4ecaad4072d9f393a93098614ffb9d627f6d51ce9a753fd07eb8bbffdcdd4a9c
         | 
| 4 | 
            +
              data.tar.gz: b87bd646f18da7706ac8d0e541f8d2a2654d684e4125ebde29a842a07ddb7b5e
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 9f11c6560fda72f8d4f1acb74fc4701cca54aa012cd43a4dba56e25601bd631bf83d9f802159ac0f36fdec8c9c358bc2e51b23142a6bd262827c3c1f71831ca1
         | 
| 7 | 
            +
              data.tar.gz: 406e6ca233ecdd50c063d371c829621206c583cc62f2d5bf4cb27198c57472acb20aedb7c172a1073fd3f290399fe851b13dd0255b96c8c66631205815ecdb20
         | 
    
        data/CHANGELOG.md
    ADDED
    
    | @@ -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.
         | 
    
        data/lib/manageiq/ssh/util.rb
    CHANGED
    
    | @@ -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) | 
| 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
         | 
    
        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. | 
| 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- | 
| 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
         |