raykit 0.0.412 → 0.0.415
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.rb +17 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90bbf2cf6b5d5adc73a758df16715c88237851395bc0256899fdf7684ab83f24
|
4
|
+
data.tar.gz: e4451e79c5432bfff07325731a0fd75778a5d4ca55690875bed3017ca5e98d33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faae844bdc7982050612752c0ed49c4e879e3b3c0fe722e170f93e6f0a10faaf76fb3266587c7c69972d86e7a25758eec588de59b9714cb77b0ace004dc60e34
|
7
|
+
data.tar.gz: d849d7644fd7edd09874fcacb424cd98c41893fd3bdbdad7de857b435bdba34da3b90a1bca9a53a890588b4204b965b4e0b26549c305e155dbf8df85a3e45ce8
|
data/lib/raykit/command.rb
CHANGED
data/lib/raykit.rb
CHANGED
@@ -42,7 +42,23 @@ if defined?(RAYKIT_GLOBALS)
|
|
42
42
|
if (File.exists?(artifact))
|
43
43
|
puts " #{artifact} exists"
|
44
44
|
else
|
45
|
-
|
45
|
+
cmd = run(command)
|
46
|
+
if (cmd.exitstatus != 0)
|
47
|
+
File.delete(artifact) if (File.exists?(artifact))
|
48
|
+
end
|
49
|
+
cmd
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def make_log(artifact, command)
|
54
|
+
if (File.exists?(artifact))
|
55
|
+
puts " #{artifact} exists"
|
56
|
+
else
|
57
|
+
cmd = run(command).log_to_file(artifact)
|
58
|
+
if (cmd.exitstatus != 0)
|
59
|
+
File.delete(artifact) if (File.exists?(artifact))
|
60
|
+
end
|
61
|
+
check_md
|
46
62
|
end
|
47
63
|
end
|
48
64
|
|