hiera-eyaml-cli 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b07a03e1ba41497fdf653da45d13251baa0db9d237ca941dbda33214bf22b316
|
4
|
+
data.tar.gz: fa8650737d84f4d1afea45030ca205097d0bf903a474a9773fc5246c4584abbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 797d735dcd60950fa30c9105473fa71e294f6611876fbc3249a5390210098c93e2e54cfc88dc0c25a2640b3852561f3a163e6c50cd36ce80ab752b345f10839f
|
7
|
+
data.tar.gz: 72ad06fcf93e38c3d5ffdc193b5396ceba72de7985050189d09693f61efcd24dc824cdcc59a5eb8ff2243c5c48bb578aa0238ac4d3ae49d25c5c3e75a1a4a191
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'open3'
|
2
2
|
|
3
3
|
class Hiera
|
4
4
|
module Backend
|
@@ -50,11 +50,12 @@ class Hiera
|
|
50
50
|
def self.encrypt(plaintext)
|
51
51
|
if self.stderr
|
52
52
|
out, status = Open3.capture2(self.encrypt_command, :stdin_data=>plaintext)
|
53
|
+
err = ''
|
53
54
|
else
|
54
55
|
out, err, status = Open3.capture3(self.encrypt_command, :stdin_data=>plaintext)
|
55
56
|
end
|
56
57
|
if status != 0
|
57
|
-
raise 'Call to encrypt subcommand failed'
|
58
|
+
raise 'Call to encrypt subcommand failed:\n%s\n%s' % [out, err]
|
58
59
|
end
|
59
60
|
out
|
60
61
|
end
|
@@ -62,11 +63,12 @@ class Hiera
|
|
62
63
|
def self.decrypt(ciphertext)
|
63
64
|
if self.stderr
|
64
65
|
out, status = Open3.capture2(self.decrypt_command, :stdin_data=>ciphertext)
|
66
|
+
err = ''
|
65
67
|
else
|
66
68
|
out, err, status = Open3.capture3(self.decrypt_command, :stdin_data=>ciphertext)
|
67
69
|
end
|
68
70
|
if status != 0
|
69
|
-
raise 'Call to decrypt subcommand failed'
|
71
|
+
raise 'Call to decrypt subcommand failed:\n%s\n%s' % [out, err]
|
70
72
|
end
|
71
73
|
out
|
72
74
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiera-eyaml-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hiera-eyaml
|