devfile 0.0.19.pre.alpha1-arm64-darwin → 0.0.21.pre.alpha1-arm64-darwin

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/bin/devfile +0 -0
  3. data/lib/devfile.rb +3 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f84dd07148e73cf76643fddaaf54abc3b1c3b47b8d8799da81edb18b9ef9dd6
4
- data.tar.gz: b6e983eb1b7b8c76f9bdaa36251f7ab4531bba29ee57c270c5e7c46f2e0930e7
3
+ metadata.gz: 6461900224ec86a6f4234ef3fec5d4311cee7439a5bd6bf87777560de33e96fa
4
+ data.tar.gz: 427000859fe533d42608da0d72e1d240216bf3e7c48e2a940dd1f0d1ef1df991
5
5
  SHA512:
6
- metadata.gz: 920cbf6c462dd7f344c990d40c3dc1deeb6ca98f2334f5a895d7024b8165ac4c107dd312fce35825f559853ed51a2ee9cf031a4a7d94a9e0b5f4c013a0729d44
7
- data.tar.gz: 736a4e755bdc8284f93fe5efb4f97c4389a580961b67678bb9ed15c6d18aae9db5237ccabafa246d133fc9af41db81524b7e08feaa9b70d5b557e270fc9c9f51
6
+ metadata.gz: fddf13512d7fe229adfce4448e0f3edb8b248a0ef1eeb47f30f5b01f63132eb88a7b75f0ba93d90bf3ce889c3678569bb92e12adfe67e57625df27f3f90dc5e5
7
+ data.tar.gz: e1241bf3e4b044bac2a671d5eb2c45ebe9fb8e4c9fa2495dca222cb8a7dddafb87e5357072a80287b266b7e377291a3c78c7c8e2d3f27c8b356c8cea4f5c97d0
data/bin/devfile CHANGED
Binary file
data/lib/devfile.rb CHANGED
@@ -4,6 +4,8 @@ require 'open3'
4
4
 
5
5
  # Module that works with the Devfile standard
6
6
  module Devfile
7
+ class CliError < StandardError; end
8
+
7
9
  # Set of services to parse a devfile and output k8s manifests
8
10
  class Parser
9
11
  FILE_PATH = File.expand_path('./../bin/devfile', File.dirname(__FILE__))
@@ -38,7 +40,7 @@ module Devfile
38
40
  def call(*cmd)
39
41
  stdout, stderr, status = Open3.capture3({}, FILE_PATH, *cmd.map(&:to_s))
40
42
 
41
- raise stderr unless status.success?
43
+ raise(CliError, stderr) unless status.success?
42
44
 
43
45
  stdout
44
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devfile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19.pre.alpha1
4
+ version: 0.0.21.pre.alpha1
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - GitLab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-12 00:00:00.000000000 Z
11
+ date: 2023-08-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Library used to generate kubernetes manifests from a Devfile.
14
14
  email:
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.3.1
48
48
  requirements: []
49
- rubygems_version: 3.4.13
49
+ rubygems_version: 3.4.4
50
50
  signing_key:
51
51
  specification_version: 4
52
52
  summary: Parse and generate kubernetes manifests from a Devfile