consolr 1.1.2 → 1.1.3
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/lib/consolr/version.rb +1 -1
- data/lib/consolr.rb +13 -5
- 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: a508a9f27ad22e59d1dc29480259e48d484cdde9
         | 
| 4 | 
            +
              data.tar.gz: afa9831abc4ed16dcf009193411d0061aece3c49
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 99774ce8839bc823f20f421fd61fbd7199b0bfc014f3d8bc2a360408b16427e1527e3e22beeb5f28867b52af1bb827854c5e423f52fde758ce8650c66829f09e
         | 
| 7 | 
            +
              data.tar.gz: 1dbf503be95263b4b9e806f3e545bea7bb8d272b986881831c1bcafd9e4226db8097677f87f4d2c007bf5003d648395a9211ff26f7e7f51edb51944cb0b0e6e6
         | 
    
        data/lib/consolr/version.rb
    CHANGED
    
    
    
        data/lib/consolr.rb
    CHANGED
    
    | @@ -12,11 +12,19 @@ module Consolr | |
| 12 12 | 
             
                attr_reader :ipmitool_exec, :dangerous_assets, :dangerous_status, :dangerous_actions, :options, :opt_parser
         | 
| 13 13 |  | 
| 14 14 | 
             
                def initialize
         | 
| 15 | 
            -
                   | 
| 16 | 
            -
             | 
| 17 | 
            -
             | 
| 18 | 
            -
             | 
| 19 | 
            -
             | 
| 15 | 
            +
                  potential_config_paths = [ENV['CONSOLR_CONFIG'],
         | 
| 16 | 
            +
                                            '~/.consolr.yml', '~/.consolr.yaml',
         | 
| 17 | 
            +
                                            '/etc/consolr.yml', '/etc/consolr.yaml',
         | 
| 18 | 
            +
                                            '/var/db/consolr.yml', '/var/db/consolr.yaml']
         | 
| 19 | 
            +
                  config_file = potential_config_paths.compact.find do |conf|
         | 
| 20 | 
            +
                    begin
         | 
| 21 | 
            +
                      expanded_path = File.expand_path(conf, __FILE__)
         | 
| 22 | 
            +
                      File.readable?(expand_path) and File.size(expand_path) > 0
         | 
| 23 | 
            +
                    rescue ArgumentError
         | 
| 24 | 
            +
                      # if $HOME is not set, or if `~` cannot be expanded, `expand_path` will throw and ArgumentError
         | 
| 25 | 
            +
                      # in that case, just go to the next potential config file - this one obviously will not work
         | 
| 26 | 
            +
                      false
         | 
| 27 | 
            +
                    end
         | 
| 20 28 | 
             
                  end
         | 
| 21 29 |  | 
| 22 30 | 
             
                  @config_params = begin
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: consolr
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.1. | 
| 4 | 
            +
              version: 1.1.3
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Will Richard
         | 
| @@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 156 156 | 
             
                  version: '0'
         | 
| 157 157 | 
             
            requirements: []
         | 
| 158 158 | 
             
            rubyforge_project: 
         | 
| 159 | 
            -
            rubygems_version: 2.4. | 
| 159 | 
            +
            rubygems_version: 2.4.6
         | 
| 160 160 | 
             
            signing_key: 
         | 
| 161 161 | 
             
            specification_version: 4
         | 
| 162 162 | 
             
            summary: consolr is a pure ruby wrapper over IPMI to allow Out of Band communiation
         |