smart_proxy_remote_execution_ssh 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bc5fac79b7bea854a28d0e8d26af6851ec0937015b88ffad4f8cea5215b3f8f
|
4
|
+
data.tar.gz: d4e14b27b7b2c02b441f2161473abe6aa629d1dac75d8045f83537f69cba197e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd4e101e224717ae4e607b54692cf2f1cbcf0c1512ba912e3255aaaa934addcf4829e27b7dc75453d416527257d8dec0cb4ba388a33ee93ccc4db030ac06ea9f
|
7
|
+
data.tar.gz: 2dc61c86cfef3d383e41fad38bc0818f4a3231763bd74633102076bc8a9d9ebc3b01a4e927b9e00dd0e7cbb9e977b9e49dc5d05afb0a78e8d097384dcb74cba7
|
@@ -161,17 +161,19 @@ module Proxy::RemoteExecution::Ssh::Runners
|
|
161
161
|
end
|
162
162
|
|
163
163
|
def preflight_checks
|
164
|
-
|
164
|
+
script = cp_script_to_remote("#!/bin/sh\nexec true")
|
165
|
+
ensure_remote_command(script,
|
165
166
|
error: 'Failed to execute script on remote machine, exit code: %{exit_code}.'
|
166
167
|
)
|
167
168
|
unless @user_method.is_a? NoopUserMethod
|
168
|
-
|
169
|
-
ensure_remote_command(path,
|
169
|
+
ensure_remote_command("#{@user_method.cli_command_prefix} #{script}",
|
170
170
|
error: 'Failed to change to effective user, exit code: %{exit_code}',
|
171
171
|
tty: true,
|
172
172
|
user_method: @user_method,
|
173
173
|
close_stdin: false)
|
174
174
|
end
|
175
|
+
# The path should already be escaped
|
176
|
+
ensure_remote_command("rm #{script}")
|
175
177
|
end
|
176
178
|
|
177
179
|
def prepare_start
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_proxy_remote_execution_ssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Nečas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|