raykit 0.0.394 → 0.0.397
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 +19 -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: b43924fe8e041e486bb2f38dedb619135cc43461db5ea3e633964422ffa734bb
|
4
|
+
data.tar.gz: ef79ee90906b8733fd63e31b47924498a5a382e446bbdc3b0a9e0c0bba759cec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c6a2d58eaea4cfeaccd23f2b1769c93052dbe4b3b943869ce0c9d97400127506b18bddb39b830c96ec6148658737d0659bd0ff60a5840104a3acd75f99d38d0
|
7
|
+
data.tar.gz: aace594a79cf30503691ba373d1b9b35d47af3d519deefdc7c0b38099d084843f1d3715e305d916ef765e733991e3c6ae3ef6195e29b62765e5054616b193bad
|
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?
|
@@ -208,6 +224,7 @@ module Raykit
|
|
208
224
|
if @exitstatus != 0
|
209
225
|
details
|
210
226
|
end
|
227
|
+
self
|
211
228
|
end
|
212
229
|
|
213
230
|
def details
|
@@ -222,6 +239,7 @@ module Raykit
|
|
222
239
|
puts " " + line
|
223
240
|
end
|
224
241
|
end
|
242
|
+
self
|
225
243
|
end
|
226
244
|
|
227
245
|
def to_markdown
|
@@ -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().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.397
|
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
|