raykit 0.0.412 → 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 +17 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09ad0c5e17f7ed926b4f2b4b9775c31bb061344c3f4490dcddecafc5fc834048'
4
- data.tar.gz: 14e8599a69c31681007ca35bb8960c2048af5eaae63e7455844499fc15686e0a
3
+ metadata.gz: 90bbf2cf6b5d5adc73a758df16715c88237851395bc0256899fdf7684ab83f24
4
+ data.tar.gz: e4451e79c5432bfff07325731a0fd75778a5d4ca55690875bed3017ca5e98d33
5
5
  SHA512:
6
- metadata.gz: '09d9ee17eb3848f70c7dddc62a409f1b2e1fa6100fa481ed2ee99ceaf6b8e68c37a8d143b9bb6180e3388249c62ee4e75c4be3431b52e262ab2d45d243f4d51f'
7
- data.tar.gz: 73caf82f49b08d3fd90456ccf49bc9250e1670593a8939aaa29dc12d08cdf96fdbaed80e1f0302ae7d94415115f1cf5dc8432ef07a4060fe172316b2854dde17
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,23 @@ if defined?(RAYKIT_GLOBALS)
42
42
  if (File.exists?(artifact))
43
43
  puts " #{artifact} exists"
44
44
  else
45
- run("conan create . -pr:b=vs2022_x86_Release -pr:h=vs2022_x86_Release")
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
 
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.412
4
+ version: 0.0.415
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow