raykit 0.0.414 → 0.0.417
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/command.rb +1 -0
- data/lib/raykit/log.rb +3 -1
- data/lib/raykit.rb +10 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77913a7620aa8486c051c33b19dc45eeaaf251a8ce1414c81dd40ee81e6d43d9
|
4
|
+
data.tar.gz: 53145496305bb34cf9c673a37f4d5e9a65a1dfa7e47dbd5d1586ae18675e6240
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d099b296b730d8de3f6efd892b2987031170517546062135ef94e32afdee222133b9784612e5544254342ed53e92bae7d9719b32066997bad22aa9441e4907b
|
7
|
+
data.tar.gz: 1f0436a062c9e41e64762a0a8c760b60c646e83205c901d0e011d42b4689895d5ebbe43ce8ed45031c150e3fea325e98bc2c2f51fa82153f60a71d3c3611d463
|
data/lib/raykit/command.rb
CHANGED
data/lib/raykit/log.rb
CHANGED
@@ -62,7 +62,9 @@ module Raykit
|
|
62
62
|
name = nvp[0]
|
63
63
|
value = nvp[1]
|
64
64
|
max_name_width = name.length if (name.length > max_name_width)
|
65
|
-
|
65
|
+
if (!value.nil?)
|
66
|
+
max_value_width = value.length if (value.length > max_value_width)
|
67
|
+
end
|
66
68
|
}
|
67
69
|
header = " =".ljust(max_name_width + max_value_width + 5, "=")
|
68
70
|
puts header
|
data/lib/raykit.rb
CHANGED
@@ -42,7 +42,11 @@ if defined?(RAYKIT_GLOBALS)
|
|
42
42
|
if (File.exists?(artifact))
|
43
43
|
puts " #{artifact} exists"
|
44
44
|
else
|
45
|
-
run(command)
|
45
|
+
cmd = run(command)
|
46
|
+
if (cmd.exitstatus != 0)
|
47
|
+
File.delete(artifact) if (File.exists?(artifact))
|
48
|
+
end
|
49
|
+
cmd
|
46
50
|
end
|
47
51
|
end
|
48
52
|
|
@@ -50,7 +54,11 @@ if defined?(RAYKIT_GLOBALS)
|
|
50
54
|
if (File.exists?(artifact))
|
51
55
|
puts " #{artifact} exists"
|
52
56
|
else
|
53
|
-
run(command).log_to_file(artifact)
|
57
|
+
cmd = run(command).log_to_file(artifact)
|
58
|
+
if (cmd.exitstatus != 0)
|
59
|
+
File.delete(artifact) if (File.exists?(artifact))
|
60
|
+
end
|
61
|
+
cmd
|
54
62
|
end
|
55
63
|
end
|
56
64
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raykit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.417
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.2.22
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: ruby gem to support rake ci/cd tasks
|