raykit 0.0.413 → 0.0.416

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 +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c80920bdacf73e47e03c2c21000dca436fe19cabdb9a9136e8c5661fa548d85b
4
- data.tar.gz: 2b8305db3c13dfa56b40ded98118e7a7878ee42e55d73cc34ef82f59fef7c31c
3
+ metadata.gz: d366914d1208287bc223820ce6ff4b25dac52215a69493f4d18fa1d0ad95f8a9
4
+ data.tar.gz: 450fa0ffdc374210c321ea0a8c615149345a00d7d4aa2718b535fab4c7e90478
5
5
  SHA512:
6
- metadata.gz: 67dd3b1cf22be2087d3a810433411fbf8136841d3c20793d69e00aa5fee5569fa727d826d1ef88d637639deff5384a7dc1ad457a729b17c601b8727c6f30611a
7
- data.tar.gz: dafecff8cc99a28c248e69e365a9b49d26e566b982f1fc8b2e09b244c01254b25fc1677ee5eaf09f264cbe13c88f5de644e6f2c952e27ffb3630c013aaaf539e
6
+ metadata.gz: 411a030981f1d9de334469de2669eb595ec58f1f06a6da64f1caa40826a11a12eb0d1be77a82b715a74d15440c6d47e5ef31170f84653cf130d60f07c1830f96
7
+ data.tar.gz: c35957e347af1fc39fc38453cee87bb3dd5ef54a46478cee748c17dd2b0df49d1d740a8a0f674e4f169b3d3ba9e21c91ebe0db9d13af16c717fa761718c79bbb
@@ -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(command)
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
+ cmd
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.413
4
+ version: 0.0.416
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
@@ -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.3.7
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