stax-helm 0.0.2 → 0.0.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/stax/helm/cmd.rb +8 -2
 - data/lib/stax/helm/version.rb +1 -1
 - metadata +3 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 915820e964fa23b1d20b876f7e89d22ee55a97e4aa60fec75e508e47f36daf54
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 6da2869fac93946398ec4c0c83df102f4cb2a883b0b5dd72ce6486d5a804ea63
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 80d9424da2501a5b209af37868fd4b615d53acb125517effb7c3a759019cf3de9ef8c025f0e10b3473b48823b986ec11c4e9cf7a010b36e2f829ca2b878c939e
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 4bef3ab94b44a3fec3c20d3df75b353bd89a823f2c5ad0959985130a8797cbe694388f4649bd1152cf53b3265e4d5e49ce897a0e1a6da8b90847632e34e25020
         
     | 
    
        data/lib/stax/helm/cmd.rb
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            module Stax
         
     | 
| 
       2 
2 
     | 
    
         
             
              module Helm
         
     | 
| 
       3 
3 
     | 
    
         
             
                class Cmd < Base
         
     | 
| 
       4 
     | 
    
         
            -
                  class_option : 
     | 
| 
      
 4 
     | 
    
         
            +
                  class_option :recon, aliases: '--just-print', type: :boolean, default: false, desc: 'print command that would be run'
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
                  no_commands do
         
     | 
| 
       7 
7 
     | 
    
         
             
                    def helm_release_name
         
     | 
| 
         @@ -21,7 +21,12 @@ module Stax 
     | 
|
| 
       21 
21 
     | 
    
         
             
                    ## run helm with args
         
     | 
| 
       22 
22 
     | 
    
         
             
                    def helm_run(*args)
         
     | 
| 
       23 
23 
     | 
    
         
             
                      cmd = [helm_bin, *args].join(' ')
         
     | 
| 
       24 
     | 
    
         
            -
                      options[: 
     | 
| 
      
 24 
     | 
    
         
            +
                      options[:recon] ? puts(cmd) : system(cmd)
         
     | 
| 
      
 25 
     | 
    
         
            +
                    end
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
                    ## description added to release
         
     | 
| 
      
 28 
     | 
    
         
            +
                    def helm_description
         
     | 
| 
      
 29 
     | 
    
         
            +
                      Git.sha
         
     | 
| 
       25 
30 
     | 
    
         
             
                    end
         
     | 
| 
       26 
31 
     | 
    
         | 
| 
       27 
32 
     | 
    
         
             
                    ## override with full path to a values.yaml file
         
     | 
| 
         @@ -37,6 +42,7 @@ module Stax 
     | 
|
| 
       37 
42 
     | 
    
         
             
                    ## construct args for install and upgrade commands
         
     | 
| 
       38 
43 
     | 
    
         
             
                    def helm_update_args
         
     | 
| 
       39 
44 
     | 
    
         
             
                      [].tap do |args|
         
     | 
| 
      
 45 
     | 
    
         
            +
                        args.push("--description #{helm_description}") if helm_description
         
     | 
| 
       40 
46 
     | 
    
         
             
                        args.push("-f #{helm_values_file}") if helm_values_file
         
     | 
| 
       41 
47 
     | 
    
         
             
                        args.push(helm_values&.map { |k,v| "--set #{k}=#{v}" })
         
     | 
| 
       42 
48 
     | 
    
         
             
                      end.flatten
         
     | 
    
        data/lib/stax/helm/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: stax-helm
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Richard Lister
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2020-05- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2020-05-30 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: bundler
         
     | 
| 
         @@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       91 
91 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       92 
92 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       93 
93 
     | 
    
         
             
            requirements: []
         
     | 
| 
       94 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 94 
     | 
    
         
            +
            rubygems_version: 3.1.2
         
     | 
| 
       95 
95 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       96 
96 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       97 
97 
     | 
    
         
             
            summary: Control helm charts with stax.
         
     |