dapp 0.19.2 → 0.19.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 874b237f052a4bde4c5e07cd39de23748ab25af7f92762955a8496e95d3e375c
|
4
|
+
data.tar.gz: c4d650bc02691b19066429350dd6e464efe5e1c4992150b5fd9fdd7feb4c9655
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6ccf397559377bb3b825fab0ab03e4f3c7f9939876951f3058132f99436cc8bdf6b8c1b90b5e4b2d5b199c8407cd7b3c3e2ce7e0897f7684ccf291b75e130b5
|
7
|
+
data.tar.gz: 07f0a6ffc374b90df63baa6c77ee86fc3576aed0c620a1e5b9189417d1f1993c47b834b061c6838debecc2b4fa9a72f78cf219449152dca35cc3326bcb27516c
|
@@ -62,7 +62,11 @@ module Dapp
|
|
62
62
|
private
|
63
63
|
|
64
64
|
def tar_option_transform(cwd, to)
|
65
|
-
format = proc
|
65
|
+
format = proc do |path|
|
66
|
+
res = path.chomp('/').reverse.chomp('/').reverse
|
67
|
+
res = res.gsub('/', '\/')
|
68
|
+
res
|
69
|
+
end
|
66
70
|
"--transform \"s/^#{format.call(cwd)}/#{format.call(to)}/\""
|
67
71
|
end
|
68
72
|
end # ImportArtifact
|
@@ -35,6 +35,12 @@ BANNER
|
|
35
35
|
default: [],
|
36
36
|
proc: proc { |v| composite_options(:helm_secret_values) << v }
|
37
37
|
|
38
|
+
option :templates,
|
39
|
+
long: '--template GLOB_PATTERN',
|
40
|
+
short: '-t GLOB_PATTERN',
|
41
|
+
default: [],
|
42
|
+
proc: proc { |v| composite_options(:templates) << v }
|
43
|
+
|
38
44
|
def run(argv = ARGV)
|
39
45
|
self.class.parse_options(self, argv)
|
40
46
|
|
@@ -4,7 +4,23 @@ module Dapp
|
|
4
4
|
module Command
|
5
5
|
module Render
|
6
6
|
def kube_render
|
7
|
-
helm_release
|
7
|
+
helm_release do |release|
|
8
|
+
templates = begin
|
9
|
+
if options[:templates].any?
|
10
|
+
release.templates.select do |template_path, _|
|
11
|
+
options[:templates].map { |t| "#{t}*" }.any? do |template_path_pattern|
|
12
|
+
template_relative_path_pattern = Pathname(File.expand_path(template_path_pattern)).subpath_of(path('.helm', 'templates'))
|
13
|
+
template_relative_path_pattern ||= template_path_pattern
|
14
|
+
File.fnmatch(template_relative_path_pattern, template_path)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
else
|
18
|
+
release.templates
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
templates.values.each { |t| puts t }
|
23
|
+
end
|
8
24
|
end
|
9
25
|
end
|
10
26
|
end
|
data/lib/dapp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Stolyarov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|