devfile 0.0.20.pre.alpha1 → 0.0.21.pre.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/devfile +0 -0
- data/lib/devfile.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89a99a2b42b54230e0f4be046257d9796efa9196f9a7f7163523982e1b41bf2f
|
4
|
+
data.tar.gz: e0bbacd664dbbaeadf67dca399b532c313a4bbd357afffc97b593ce4ebf8fc55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c2f69504994264d92ac84e72a40cbc2d13e9705c1d32a714d7ac39c65456501b0045802051484f7b954ebb8841083edf3c7a44e3d32b3e25a18d672fd70d92d
|
7
|
+
data.tar.gz: 75482cbf4ba6cfe7716e534a5d2701919f8596b95994c13995a64838a09cb477ca6a3119d88fc04dbc8765ce67e869e938829eab076529ba7cca370f6c1a148e
|
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.
|
4
|
+
version: 0.0.21.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-
|
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:
|