kumonos 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/kumonos +11 -0
- data/lib/kumonos/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: a9d8e70b585fb2808b2d3f92d44595ad1662230c4c15f7f3d653b0385ceb98e1
|
4
|
+
data.tar.gz: 97df76a08e71b7f9297a89a0354d96beaefc21471bdd4e4a612fb45980f8b638
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82ebb28e772af08d06f014223711bd81f6e43fed8259c9f41834ced770cbe2882e2dcb2ecbf5ec5bf3602b3de30440e54d0a806c9e8b9b8e24abb05f43cd88b4
|
7
|
+
data.tar.gz: ceebdbab976f00c99b3717168451a52c6ebba6d70c841d8a319c71a548b908d2ec9022d233d3da61c567e31a749eddcb2d5242b788d01243afc025ffd07a8bfd
|
data/exe/kumonos
CHANGED
@@ -75,6 +75,17 @@ class KumonosCli < Thor
|
|
75
75
|
puts path
|
76
76
|
end
|
77
77
|
|
78
|
+
desc 'yaml SERVIVE_DEFINITION', 'Generate definition as YAML'
|
79
|
+
def yaml(filepath)
|
80
|
+
validate_path!(filepath)
|
81
|
+
raise "Expected JSonnet file: #{filepath}" unless filepath.end_with?('.jsonnet')
|
82
|
+
|
83
|
+
definition = load_definition(filepath)
|
84
|
+
new_path = filepath.gsub(/.jsonnet\z/, '.yml')
|
85
|
+
File.write(new_path, YAML.dump(definition))
|
86
|
+
puts new_path
|
87
|
+
end
|
88
|
+
|
78
89
|
private
|
79
90
|
|
80
91
|
def validate_path!(path)
|
data/lib/kumonos/version.rb
CHANGED