train-pwsh 0.1.2 → 0.1.3
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/train-pwsh/connection.rb +10 -0
- data/lib/train-pwsh/version.rb +1 -1
- 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: 3ec867288676127f29ea07114e8acbb29e126b7dbc15aba96ca8669fd8818ee8
|
4
|
+
data.tar.gz: f0f08b98e659a6ebae79e6045c928e2bddae9331c5c740ad8b1f4e526841ff1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac445931a17e3a433a4d1b5ccc8901064db19a1763952ca0a339d070c912c70e0c6421f236f97ccc45eee3a4748f92d4725faba4923f24cfe6c1d2d67d3435fe
|
7
|
+
data.tar.gz: '02475499a432dbd135519783e3afe67bcb166459f3dcf51865cec217f3622c1d3ecb75dc7e87d91b9b44c60c69d5c43d5a41e30162f8a514591c9db97f283474'
|
@@ -151,6 +151,11 @@ module TrainPlugins
|
|
151
151
|
if result[:stdout].nil?
|
152
152
|
result[:stdout] = ""
|
153
153
|
end
|
154
|
+
if !result[:stdout].empty? && result[:stdout].match?(/is not recognized|session is not established/i)
|
155
|
+
result[:stderr] = result[:stdout]
|
156
|
+
result[:stdout] = ""
|
157
|
+
result[:exitcode] = -1
|
158
|
+
end
|
154
159
|
return CommandResult.new(result[:stdout],result[:stderr],result[:exitcode])
|
155
160
|
end
|
156
161
|
|
@@ -159,6 +164,11 @@ module TrainPlugins
|
|
159
164
|
if result[:stdout].nil?
|
160
165
|
result[:stdout] = ""
|
161
166
|
end
|
167
|
+
if !result[:stdout].empty? && result[:stdout].match?(/is not recognized|session is not established/i)
|
168
|
+
result[:stderr] = result[:stdout]
|
169
|
+
result[:stdout] = ""
|
170
|
+
result[:exitcode] = -1
|
171
|
+
end
|
162
172
|
return CommandResult.new(result[:stdout],result[:stderr],result[:exitcode])
|
163
173
|
end
|
164
174
|
end
|
data/lib/train-pwsh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: train-pwsh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sujay Kandwal
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: train
|