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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8db16bbf17c66b24cf72a3e807ffeda939a1fda49ced1f7d9b708eae254b66ed
4
- data.tar.gz: cd11b9f4eb2d4732a067e1aa51da1613e64903f3668e57e2b9886a084a599e95
3
+ metadata.gz: 915820e964fa23b1d20b876f7e89d22ee55a97e4aa60fec75e508e47f36daf54
4
+ data.tar.gz: 6da2869fac93946398ec4c0c83df102f4cb2a883b0b5dd72ce6486d5a804ea63
5
5
  SHA512:
6
- metadata.gz: c3a6d9400080112015b5dd688939d84f80df7cae7d9f094316f8b51c2cc6c8aa5a1ab127ef0876a148e0761c1e875ebae78ff33c51c12700925e03d72513def2
7
- data.tar.gz: be3eb884e62f76be25450face25c860095380ddca05f72b98cb2ba971e538fb874c0ebd7e0e476bab36af2a9dec8d238f239e709844f44dc1e14acbe88bd58cf
6
+ metadata.gz: 80d9424da2501a5b209af37868fd4b615d53acb125517effb7c3a759019cf3de9ef8c025f0e10b3473b48823b986ec11c4e9cf7a010b36e2f829ca2b878c939e
7
+ data.tar.gz: 4bef3ab94b44a3fec3c20d3df75b353bd89a823f2c5ad0959985130a8797cbe694388f4649bd1152cf53b3265e4d5e49ce897a0e1a6da8b90847632e34e25020
@@ -1,7 +1,7 @@
1
1
  module Stax
2
2
  module Helm
3
3
  class Cmd < Base
4
- class_option :dry_run, type: :boolean, default: false, desc: 'print command that would be run'
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[:dry_run] ? puts(cmd) : system(cmd)
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
@@ -1,5 +1,5 @@
1
1
  module Stax
2
2
  module Helm
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
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.2
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-25 00:00:00.000000000 Z
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.0.3
94
+ rubygems_version: 3.1.2
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Control helm charts with stax.