kumonos 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/kumonos +11 -0
  3. data/lib/kumonos/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 529353de6d713d922bfa8a74af3e04166ecbb949755c945014c51fd5bcd0ed24
4
- data.tar.gz: c73615662f4f8f87dcf82c0505d2581ddccf2a9b27c318b84dcd2590ba070cea
3
+ metadata.gz: a9d8e70b585fb2808b2d3f92d44595ad1662230c4c15f7f3d653b0385ceb98e1
4
+ data.tar.gz: 97df76a08e71b7f9297a89a0354d96beaefc21471bdd4e4a612fb45980f8b638
5
5
  SHA512:
6
- metadata.gz: 1c19e7a8a6d07d450f7b930f7bddf2eb5961d09e177ac42817bc8cf540159354f12af12786f304a0a04ac5821ea6ea61cc973dedea3f7030f91abad9ce8f2d3c
7
- data.tar.gz: 727084fb53fb46d101e090903bf26ef52f098fb2aad16b90db0cc3405a2bbc77fbf34de7d89ecf8cf477e1a936d7876d4e23a35d07c87c41fef06b6cb0f1b09c
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)
@@ -1,3 +1,3 @@
1
1
  module Kumonos
2
- VERSION = '0.17.0'.freeze
2
+ VERSION = '0.18.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kumonos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taiki Ono