devfile 0.0.20.pre.alpha1 → 0.0.22.pre.alpha1

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.
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 +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36e6510f4a48ed9d2715da31116c4d7029edd94248cd4092ece97ebc7f6ed8e0
4
- data.tar.gz: 89212b14b5f3d8c86921f706f7b42f3db8894fc4c5d13d49113f6003f9c4fbec
3
+ metadata.gz: 75553ec244af99271e5d851ceae5c0121cae6d4695a6b12719bb6cdfbd6c3a3a
4
+ data.tar.gz: f1af07a8a7efc25a3784d0c274c61be149ff1e29d5ceeb1e96cd1c84071ad34e
5
5
  SHA512:
6
- metadata.gz: a54bdfd10f30e49e71b28856c15f092e8a11e2013ca77c4b3ce892061585fbb757344352069a23ec7005bb2d998e4039356dc06e5bb56f7334df7dfd25a3b755
7
- data.tar.gz: 26aa948bff68a3f4c3e8779c32b0c0b4e4b56544299c80023e41fc687f6b2bb1266afda21aefd6686b3be3351b4feac978ea5ebf58806e2b7878b5694b7ad478
6
+ metadata.gz: eefbcfd6d8a2aea3cb6f12095ce1052ae88937951cd2e18fa2fe3286f1a446f91e92ed32503acaddddb2da3ee115d7eb847636188f83fb25279c47baca06b34c
7
+ data.tar.gz: 53461e1ffab66a45b95266e0fc031a203e939074f4d8fb6f8e98227097d8ef05631c3248cd8006da40e0c8683bda9d579617b5fbe3727a6336e2afa6dec69857
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.20.pre.alpha1
4
+ version: 0.0.22.pre.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-18 00:00:00.000000000 Z
11
+ date: 2023-08-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Library used to generate kubernetes manifests from a Devfile.
14
14
  email: