systemdy 0.4.0 → 0.4.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 +6 -0
 - data/Gemfile.lock +1 -1
 - data/README.md +3 -3
 - data/lib/systemdy/service.rb +1 -1
 - data/lib/systemdy/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 10b3ca235c1abc9f2b8f2fc01fa639cca71bdb57fe3f26dc71f70fccd99fd7bb
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 370c09980bd26febb416dc18a2dd45ec75854067a720f663be0575f849f25c79
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 79534ac6454b7bc62b660d52a7f6bc6be411ff6731d342e8c409daa3a00b36470908b706eee92ff2ce6d55b1102fc612b19c65e1687e6a146cec87b380e32ee3
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: b39f56ace450d44c2557519156d800182592d2c934112e7000c6eea8a687d3f761e6a68a498a65f83a24263684fdb4bf99f0313e63eda908b4f93bf3960af736
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | 
         @@ -193,7 +193,7 @@ Once executed, this method return the provided service port: 
     | 
|
| 
       193 
193 
     | 
    
         
             
            if the provided service has no available port, this method return a message like this:
         
     | 
| 
       194 
194 
     | 
    
         | 
| 
       195 
195 
     | 
    
         
             
            ```ruby
         
     | 
| 
       196 
     | 
    
         
            -
             " 
     | 
| 
      
 196 
     | 
    
         
            +
             "[name_of_the_service].service has no port available"
         
     | 
| 
       197 
197 
     | 
    
         
             
            ```
         
     | 
| 
       198 
198 
     | 
    
         | 
| 
       199 
199 
     | 
    
         
             
            ### Get service protocol
         
     | 
| 
         @@ -203,7 +203,7 @@ For retrieve a service protocol 
     | 
|
| 
       203 
203 
     | 
    
         
             
            ```ruby
         
     | 
| 
       204 
204 
     | 
    
         
             
            my_postgresql_service.protocol
         
     | 
| 
       205 
205 
     | 
    
         
             
            ```
         
     | 
| 
       206 
     | 
    
         
            -
            Once executed, this method return the provided service  
     | 
| 
      
 206 
     | 
    
         
            +
            Once executed, this method return the provided service protocol:
         
     | 
| 
       207 
207 
     | 
    
         | 
| 
       208 
208 
     | 
    
         
             
            ```ruby
         
     | 
| 
       209 
209 
     | 
    
         
             
              "tcp"
         
     | 
| 
         @@ -212,7 +212,7 @@ Once executed, this method return the provided service port: 
     | 
|
| 
       212 
212 
     | 
    
         
             
            if the provided service has no available protocol, this method return a message like this:
         
     | 
| 
       213 
213 
     | 
    
         | 
| 
       214 
214 
     | 
    
         
             
            ```ruby
         
     | 
| 
       215 
     | 
    
         
            -
             " 
     | 
| 
      
 215 
     | 
    
         
            +
             "[name_of_the_service].service has no protocol available"
         
     | 
| 
       216 
216 
     | 
    
         
             
            ```
         
     | 
| 
       217 
217 
     | 
    
         | 
| 
       218 
218 
     | 
    
         
             
            ### Start the service
         
     | 
    
        data/lib/systemdy/service.rb
    CHANGED
    
    | 
         @@ -79,7 +79,7 @@ module Systemdy 
     | 
|
| 
       79 
79 
     | 
    
         
             
                        define_method info do 
         
     | 
| 
       80 
80 
     | 
    
         
             
                            return default_error_message() unless exist?
         
     | 
| 
       81 
81 
     | 
    
         
             
                            essential_info = return_an_array_from(`#{INFO_LOOKUP_COMMAND} #{name}`, argument_splitter: ' ')
         
     | 
| 
       82 
     | 
    
         
            -
                            return info_lookup_error_message(info) if essential_info.nil?
         
     | 
| 
      
 82 
     | 
    
         
            +
                            return info_lookup_error_message(info) if essential_info.nil? || essential_info.empty?
         
     | 
| 
       83 
83 
     | 
    
         
             
                            return_an_array_from(essential_info[1], argument_splitter: '/')[index]
         
     | 
| 
       84 
84 
     | 
    
         
             
                        end
         
     | 
| 
       85 
85 
     | 
    
         
             
                    end
         
     | 
    
        data/lib/systemdy/version.rb
    CHANGED