raykit 0.0.350 → 0.0.353
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/raykit/command.rb +1 -1
- data/lib/raykit/project.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3239483f502fa2a639742dbed60ac186fd9a07670e4f58f4b391e0b26463b1ae
|
4
|
+
data.tar.gz: 750ea76e1ed331c7ac05638a37f4b3f45bed89cf836af6cc02448be5363d1c80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf6f72ac5611a9e21d4b67d71bfe78bcd4c0e1475848b10d65d6972744d198e9ded111f8d2a0fc8ad9e4b92a2658176ae81239ce82e901d7874e691e2d27a331
|
7
|
+
data.tar.gz: 1e7fe8d31e1a37ac3502b219ab30b48d2c76071e2123258ed1c1c77de01cbff8a4270ab239a66e038e32a691627ddfe913a8e9a02c626e8c4f7ee945969347d7
|
data/lib/raykit/command.rb
CHANGED
@@ -63,7 +63,7 @@ module Raykit
|
|
63
63
|
@output, @error, process_status = Open3.capture3(@command)
|
64
64
|
@exitstatus = process_status.exitstatus
|
65
65
|
else
|
66
|
-
puts "@timeout is #{@timeout}"
|
66
|
+
#puts "@timeout is #{@timeout}"
|
67
67
|
Open3.popen3(@command, chdir: @directory) do |_stdin, stdout, stderr, thread|
|
68
68
|
tick = 1
|
69
69
|
pid = thread.pid
|
data/lib/raykit/project.rb
CHANGED
@@ -13,11 +13,13 @@ module Raykit
|
|
13
13
|
@remote
|
14
14
|
@repository
|
15
15
|
@git_directory
|
16
|
+
@timeout
|
16
17
|
|
17
18
|
# @log
|
18
19
|
# @commit_message_filename
|
19
20
|
|
20
21
|
def initialize
|
22
|
+
@timeout = 1000 * 60 * 15
|
21
23
|
@verbose = false
|
22
24
|
@timer = Raykit::Timer.new
|
23
25
|
@remote = ""
|
@@ -286,14 +288,14 @@ module Raykit
|
|
286
288
|
if command.is_a?(Array)
|
287
289
|
command.each { |subcommand| run(subcommand, quit_on_failure) }
|
288
290
|
else
|
289
|
-
cmd = Command.new(command).set_timeout(
|
291
|
+
cmd = Command.new(command).set_timeout(@timeout).run
|
290
292
|
cmd.summary
|
291
293
|
cmd.save
|
292
294
|
elapsed_str = Timer.get_elapsed_str(cmd.elapsed, 0)
|
293
295
|
if !cmd.exitstatus.nil? && cmd.exitstatus.zero?
|
294
296
|
else
|
295
297
|
# display error details
|
296
|
-
puts cmd.output
|
298
|
+
#puts cmd.output
|
297
299
|
puts cmd.error
|
298
300
|
puts
|
299
301
|
abort "#{Rainbow(elapsed_str).red.bright} #{Rainbow(cmd.command).white}" if quit_on_failure
|
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.353
|
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-
|
11
|
+
date: 2022-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|