devfile 0.0.19.pre.alpha1-x86_64-linux → 0.0.21.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: fd136863e617ed6eb6d662e8c7141b3831e4ef6f41e49d32ae0f3df94e1a873b
4
- data.tar.gz: b67aa5b3e2948febb86e9052e893e3173b0518a6731ea71a2604fa8b7dc0a752
3
+ metadata.gz: 374e8437fa9b669c412fc477ba2f2012a8acba2e0831b2a5eb49272252c2c55c
4
+ data.tar.gz: 259d7ff8f34add07c10e041d87ab412b051bc1fd51353f50fc1b3b56e3ba3d9a
5
5
  SHA512:
6
- metadata.gz: 301b2f676ba1a3826891f1059dce82609227a09cbbbf56425b08676bca6556ca030f6b6e1e8fd06074a04ef804359bd0569eb3732152a0f8befa29f978a5e41a
7
- data.tar.gz: 29bcecfb1c026b9cca13d5311c1b7dc6f3345767ce9bc707558c4327d0c5455fba8a4c1d889b74ae7e45ac00679f86d6b3894b3fe8e262973734f80f57142e56
6
+ metadata.gz: 46d1f5625d04b837a6eeea3b2ea4f1d5f8db3f6acba25171bd29bf13c9f96d678f693f0588e4333f4726c3913cf107ae02e0d04bbade7f4acbc630e2a071e5cb
7
+ data.tar.gz: 750b59a2a690e1581bf6e5db1c03b238b13a3fca9ec2ed2f8ba0c08a07d0e77beede4b5fb65a68dba710888dbde8cbfd29e5d0df65d84f3aaf48b41e5f1c2e62
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: x86_64-linux
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: