devfile 0.0.20.pre.alpha1-x86_64-linux → 0.0.22.pre.alpha1-x86_64-linux

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 +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1181ebae171e9a65f6a500036fcd02c5eef76d9433e23eb321b8d51cbb2447fb
4
- data.tar.gz: e0d0beabf21a2d68282771c834a8b671b4606a1fc94fa480f1aafd4189dd0340
3
+ metadata.gz: b499838203f602155d80bd0538694417554a36280aad522971d51469e2fb82b7
4
+ data.tar.gz: 473979bed9ab0c3b8de1ff9b820554a48d1ba8856cdadeb5914f3689b60c27dd
5
5
  SHA512:
6
- metadata.gz: a5932c6514db2e590cab93f9e2a7ee4856bc48c765f723ea8100ff07c6dac681f49f12438752f0086714caf342f5bcc7c9e3f711817bc2e921f23612ae79d143
7
- data.tar.gz: e4697a988371ff2485b75bf80e9bb925948420a80ca80c3f26d7e9d7c74287b0048272e30a9104332f07d06633e834efab1a8e8e96e6ab22b4264c159c0614f7
6
+ metadata.gz: 779c77a870f6a67f9bdb043f83562f826cf43819cc0cdfac1850202d9321ddb658b4dde2016384c0cb2b25c501848166dcddc70428f918dee9a8acd1dbf8b168
7
+ data.tar.gz: c72b96768b00d50a0df000f0ac23fecba47bc3a9d48d5afe91f7d4c8128419fc1c4986df3f18921ed65f8318f213b4b04a913b3046c771d33c2d4a65ce12cbee
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: x86_64-linux
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-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Library used to generate kubernetes manifests from a Devfile.
14
14
  email: