raykit 0.0.395 → 0.0.398
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 +17 -1
- data/lib/raykit/git/repository.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b629dd776504babf41e4f267708ca8cd375d0760dc1372f2b66a602812df531
|
4
|
+
data.tar.gz: 16bc67c404d0262fbcaa97f88d844870ea5d38b561f34c73a961e8db71707100
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9646908b0449f90ad346b5e0f83f62de481aed6808796649aff40e5ebc8a22bf136a10bbab7f296824171a104558c68bf91ccf256a86bfdd9dcf360c120e90d4
|
7
|
+
data.tar.gz: 5d74aa7b742bf671abea52f840b6db0a300b34e50a01a0f378e30c1f5939e5d0ecebb7bbf60042c02cacd7beb3d7f43db702189f86129102b25a88522f2de171
|
data/lib/raykit/command.rb
CHANGED
@@ -73,9 +73,10 @@ module Raykit
|
|
73
73
|
Kernel.select([stdout, stderr], nil, nil, tick)
|
74
74
|
begin
|
75
75
|
@output << stdout.read_nonblock(BUFFER_SIZE)
|
76
|
-
|
76
|
+
#@error << stderr.read_nonblock(BUFFER_SIZE)
|
77
77
|
rescue IO::WaitReadable
|
78
78
|
rescue EOFError
|
79
|
+
#puts "rescue block entered"
|
79
80
|
@exitstatus = thread.value.exitstatus
|
80
81
|
until stdout.eof?
|
81
82
|
@output << stdout.read_nonblock(BUFFER_SIZE)
|
@@ -85,6 +86,21 @@ module Raykit
|
|
85
86
|
end
|
86
87
|
break
|
87
88
|
end
|
89
|
+
|
90
|
+
#begin
|
91
|
+
# @output << stdout.read_nonblock(BUFFER_SIZE)
|
92
|
+
# @error << stderr.read_nonblock(BUFFER_SIZE)
|
93
|
+
#rescue IO::WaitReadable
|
94
|
+
#rescue EOFError
|
95
|
+
# @exitstatus = thread.value.exitstatus
|
96
|
+
# until stdout.eof?
|
97
|
+
# @output << stdout.read_nonblock(BUFFER_SIZE)
|
98
|
+
# end
|
99
|
+
# until stderr.eof?
|
100
|
+
# @error << stderr.read_nonblock(BUFFER_SIZE)
|
101
|
+
# end
|
102
|
+
# break
|
103
|
+
#end
|
88
104
|
end
|
89
105
|
sleep 1
|
90
106
|
if thread.alive?
|
@@ -147,7 +147,9 @@ module Raykit
|
|
147
147
|
Dir.chdir(make_dir) do
|
148
148
|
run("git reset --hard #{commit_id}")
|
149
149
|
FileUtils.rm_rf(".git")
|
150
|
-
cmd =
|
150
|
+
cmd = Raykit::Command.new(command)
|
151
|
+
cmd = cmd.run().summary().details_on_failure
|
152
|
+
#cmd = run(command).details_on_failure
|
151
153
|
end
|
152
154
|
FileUtils.rm_rf(make_dir) if (cmd.exitstatus == 0)
|
153
155
|
cmd
|
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.398
|
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-07-
|
11
|
+
date: 2022-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
|
-
rubygems_version: 3.
|
147
|
+
rubygems_version: 3.3.7
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: ruby gem to support rake ci/cd tasks
|