knife-node-context-exec 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/knife-node-context-exec/runner.rb +1 -2
- data/lib/knife-node-context-exec/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5bd55f983e73df9dac25165bcb90df477d1d4d8
|
4
|
+
data.tar.gz: 380c39a43eff209ef6128dc9e2f3a5f04c163628
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c73b9044111680e4b728a530d8b87aac269fd8acca9f3f8aaa96ade01e31ee40ae5b76bfb445c9a6e299e5ec690e421bfb4cdec9cbef7f7fbb455cf9160ea30
|
7
|
+
data.tar.gz: 1133ec3fb4952d7c344627ab6ad73f049bf9cb58f9510d90d51f95a03a6eefacca07449321d65decb8f1aa87cfb7a5ab6c0a5527e4afb129a21239925937742f
|
@@ -24,8 +24,7 @@ module KnifeNodeContextExec
|
|
24
24
|
full_script_filename =
|
25
25
|
File.join(script_directory, script_filename).gsub(File::SEPARATOR, File::ALT_SEPARATOR || File::SEPARATOR)
|
26
26
|
File.open(full_script_filename, 'w') { |file| file.puts(script) }
|
27
|
-
|
28
|
-
cooked_command = command.gsub('%script%', full_script_filename)
|
27
|
+
cooked_command = command.gsub('%script%', full_script_filename.gsub('\\', '\\\\'))
|
29
28
|
@output = []
|
30
29
|
yield(">>>> Command: #{cooked_command} <<<<")
|
31
30
|
Open3.pipeline_r(cooked_command) do |output, _|
|