devfile 0.0.20.pre.alpha1-arm64-darwin → 0.0.22.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: 0e3fe05f1670e0ae58cb749c5d64cbcebf2b97ea196b258386fe2a72a59ed732
4
- data.tar.gz: 17524e72090d8eafac0afb1317fcd35e0fa6fb92178354db2cff98e8db8bec26
3
+ metadata.gz: 589b7c8ee99911aba01cf724a48bd64e018747da391598348f1fd171ffc52732
4
+ data.tar.gz: a2a5b2391cc2b5407e0770fdcc792adfca66c484b3655f25d46f8ada4f0e3d51
5
5
  SHA512:
6
- metadata.gz: d76a9352f8783ea81a3d5d54bbd618a618ea245f8db050959d94216abc112d49dad7a52488418dcbd4a8af81777976cc6b8716b230cb6f3789f92c29a6ad0564
7
- data.tar.gz: 2b2bb4dc9b0f007f50944409ec18a2e8dd5ce81f114dac0e4af5d4172bc0127c479c150867b44da0261a33670879617a7ef6a2b2aa04d635cb8c00dc09a79633
6
+ metadata.gz: 7577729fd71f613fa5dd6fba1135dc87f73d405f357ced497ef8aacdff031f5a4f171820bc5e8b96e94f490d2f9b7b1ffa4e284fe7943cd391a97d3ef98295d2
7
+ data.tar.gz: 5c3902c4e8b35e55e35cb6fb5e7fc3b82c703e8f4bb5036eb94751bea2bbdd423e44ad3f182417105e88feae9fec9f82e634dbca2d40dce2ffce301842933074
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: arm64-darwin
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:
@@ -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.10
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