raykit 0.0.414 → 0.0.415

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/lib/raykit/command.rb +1 -0
  3. data/lib/raykit.rb +10 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0fd0e143714ba3d1861b2a5477df3c090d4af04291128312d58703517552dbb
4
- data.tar.gz: ce68d0b95084c638a24a05bfbb2fff8199b3759c88cbf8408260780feb8ec1ce
3
+ metadata.gz: 90bbf2cf6b5d5adc73a758df16715c88237851395bc0256899fdf7684ab83f24
4
+ data.tar.gz: e4451e79c5432bfff07325731a0fd75778a5d4ca55690875bed3017ca5e98d33
5
5
  SHA512:
6
- metadata.gz: 3e961640f304b8018a4e5059925bd27e58e9dc5ed22194cc4f7825fd35e59b295bd12cdeb5d88a3bf16360b5308cc0e04f9271cb2e62ef3ad9af22ec847932b4
7
- data.tar.gz: 3465a03d27d14be459e9487b1bfe4c850d837ee7c8f05ebd79239ef2413d02f65b77a724d7be89835639c6475a646d5277a6f16f8255778c1a7fc37119b082b1
6
+ metadata.gz: faae844bdc7982050612752c0ed49c4e879e3b3c0fe722e170f93e6f0a10faaf76fb3266587c7c69972d86e7a25758eec588de59b9714cb77b0ace004dc60e34
7
+ data.tar.gz: d849d7644fd7edd09874fcacb424cd98c41893fd3bdbdad7de857b435bdba34da3b90a1bca9a53a890588b4204b965b4e0b26549c305e155dbf8df85a3e45ce8
@@ -270,6 +270,7 @@ module Raykit
270
270
  f.puts output
271
271
  f.puts error
272
272
  }
273
+ self
273
274
  end
274
275
 
275
276
  def to_hash
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
+ check_md
54
62
  end
55
63
  end
56
64
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.414
4
+ version: 0.0.415
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow