ruby_helm 0.1.0 → 0.1.2

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: 1ce05cc2f8e041f5c74b32deec4f25bbda4bd7e1d03e79798533dec3ae03dc62
4
- data.tar.gz: 2a1ce0e73fc747c689758c9ac98ef2e4731d343629b1aa521d9ad481bcacb226
3
+ metadata.gz: a38ba43b443a7dedad0c20a3eba11713ea204329926fec17b2dddc3a12573968
4
+ data.tar.gz: 811b7e4a85af252b38cb1ace554fe9ced32347a11c0b06d93420b0560934a509
5
5
  SHA512:
6
- metadata.gz: 83c3a2933ad12d17aff5cf868f93bf2919d34f33017165afdee90d702c27ab8437c4abb3b906cea97ce02c51067dbc3a9cda9070e1350ce0dc8e4f2be4906317
7
- data.tar.gz: 02034f23f0da6ac6b0b56653f4f8301808f864344ea7f274197af8a49dab715037f264b2a25d5c7828f2d65339946f4172095b2a9d6dfcd3774ba291eb0d8b63
6
+ metadata.gz: 23bada053f64ca10e5c7b8925bcf99021a1c7fb3c9cd8a3bcbc9133a58d6cd00906f4cb5b12a5d775619a1b26567b1689ff228fd0290fd6bf3006cdc759ca648
7
+ data.tar.gz: 27eda219accd6660e963c26bb0492110cfc8b29816779c0fff9f59ddec8bd5a5e5f54f02068d373afb8e76a6cf5688de3b946ec415c321ebf5baa1a73e84e14b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_helm (0.1.0)
4
+ ruby_helm (0.1.2)
5
5
  lino (~> 1.1)
6
6
 
7
7
  GEM
@@ -9,6 +9,7 @@ GEM
9
9
  specs:
10
10
  concurrent-ruby (1.1.4)
11
11
  diff-lcs (1.3)
12
+ gem-release (2.0.1)
12
13
  hamster (3.0.0)
13
14
  concurrent-ruby (~> 1.0)
14
15
  lino (1.1.0)
@@ -35,6 +36,7 @@ PLATFORMS
35
36
 
36
37
  DEPENDENCIES
37
38
  bundler (~> 1.17)
39
+ gem-release (~> 2.0)
38
40
  rake (~> 10.0)
39
41
  rspec (~> 3.0)
40
42
  ruby_helm!
@@ -1,7 +1,8 @@
1
1
  require_relative 'commands/init'
2
2
  require_relative 'commands/install'
3
- require_relative 'commands/upgrade'
4
3
  require_relative 'commands/reset'
4
+ require_relative 'commands/template'
5
+ require_relative 'commands/upgrade'
5
6
 
6
7
  module RubyHelm
7
8
  module Commands
@@ -0,0 +1,34 @@
1
+ require 'lino'
2
+ require_relative 'base'
3
+
4
+ module RubyHelm
5
+ module Commands
6
+ class Template < Base
7
+ def configure_command(builder, opts)
8
+ chart = opts[:chart]
9
+ name = opts[:name]
10
+ output_directory = opts[:output_directory]
11
+ values = opts[:values] || {}
12
+
13
+ paired_values = values.map do |key, value|
14
+ "#{key}=#{value}"
15
+ end
16
+
17
+ builder.with_subcommand('template') do |sub|
18
+ sub = sub.with_option(
19
+ '--set',
20
+ paired_values.join(","),
21
+ separator: ' ') unless values.empty?
22
+ sub = sub.with_option('--name', name, separator: ' ') if name
23
+ sub = sub.with_option(
24
+ '--output-dir',
25
+ output_directory,
26
+ separator: ' '
27
+ ) if output_directory
28
+ sub
29
+ end
30
+ .with_argument(chart)
31
+ end
32
+ end
33
+ end
34
+ end
@@ -1,3 +1,3 @@
1
1
  module RubyHelm
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_helm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - jimmythompson
@@ -105,6 +105,7 @@ files:
105
105
  - lib/ruby_helm/commands/init.rb
106
106
  - lib/ruby_helm/commands/install.rb
107
107
  - lib/ruby_helm/commands/reset.rb
108
+ - lib/ruby_helm/commands/template.rb
108
109
  - lib/ruby_helm/commands/upgrade.rb
109
110
  - lib/ruby_helm/version.rb
110
111
  - ruby_helm.gemspec