smart_proxy_remote_execution_ssh 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzI1NGMzZWY4NTdhZGRiODBjZTM1YjllMDlkMDA2OWVmYmZkMzEyZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTExMDJiOTBjOGI5NjNkYWY0ODJkZTY0YTI5ZTk0YTRjMTAzNzU2YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzhjOWZjYmE4MTgxNjA4NTBmOGMyNTNlODBlOTM3OGZiZjk2ZGYzMGNlMDZi
|
10
|
+
NDEwZTY0YmVmYzQzNTM3ZDgyYWQ3MDAxZDMwYzFjMDQyMGIzMWZlM2JmOWJj
|
11
|
+
ZThlNGU5ZjYyNWQ1ZGRmNGU4ZGRjNzg2YTZkZWNmNTQwZDkzZWQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWE4OTI4NGU1OTA2YTIzMmI5NDJlNzAyYjRjZGNiYTU3YWEzNmUyYWNiY2E3
|
14
|
+
YTQ5N2MyZmE5NDliYmZiZjQ5MGE4ZjhjNmExNWVlYzJiZGUxYTc0OTFlZDEx
|
15
|
+
M2ViNWNhMWVlOTJiNzhiYTk2YzU3ODRhYWI2MzRiYzE1ZDcxMzk=
|
@@ -138,13 +138,17 @@ module Proxy::RemoteExecution::Ssh
|
|
138
138
|
end
|
139
139
|
|
140
140
|
def cp_script_to_remote
|
141
|
-
local_script_file = write_command_file_locally('script', @command.script)
|
141
|
+
local_script_file = write_command_file_locally('script', sanitize_script(@command.script))
|
142
142
|
File.chmod(0777, local_script_file)
|
143
143
|
remote_script_file = remote_command_file('script')
|
144
144
|
@connector.upload_file(local_script_file, remote_script_file)
|
145
145
|
return remote_script_file
|
146
146
|
end
|
147
147
|
|
148
|
+
def sanitize_script(script)
|
149
|
+
script.tr("\r", '')
|
150
|
+
end
|
151
|
+
|
148
152
|
def write_command_file_locally(filename, content)
|
149
153
|
path = local_command_file(filename)
|
150
154
|
ensure_local_directory(File.dirname(path))
|
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.0.
|
4
|
+
version: 0.0.6
|
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: 2015-09-
|
11
|
+
date: 2015-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|