vagrant-vaimo-unison 1.1.0 → 1.1.1
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24f75e1e50ff04b853a487320f12cd1834a8717d
|
4
|
+
data.tar.gz: d02d9fcb2470a0fa91eee58cacfcd2149a42d357
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9cef2b0fe1501efa8e1cb81dec1fa1580edc70c9222c44c3612a7ef12ba2077cc62791fb7687001d48ee03d546a71d56bdfa4f6922ccaa0a57ce95304fd33ea
|
7
|
+
data.tar.gz: 21349a8aa420b22b021f6aa630ab841ba0f2c74f51eb61168dce40996aa992f526c9511ca7814c3ddc1a1cf3defdb0bdc69ce1e2f4d77f1dfa303b2d0f004b75
|
@@ -92,7 +92,7 @@ module VagrantPlugins
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def watch_vm_for_memory_leak(machine)
|
95
|
-
ssh_command = SshCommand.new(machine)
|
95
|
+
ssh_command = SshCommand.new(machine, options)
|
96
96
|
Thread.new(ssh_command.ssh, machine.config.unison.mem_cap_mb) do |ssh_command_text, mem_cap_mb|
|
97
97
|
while true
|
98
98
|
sleep 15
|
@@ -1,8 +1,9 @@
|
|
1
1
|
module VagrantPlugins
|
2
2
|
module Unison
|
3
3
|
class SshCommand
|
4
|
-
def initialize(machine)
|
4
|
+
def initialize(machine, options)
|
5
5
|
@machine = machine
|
6
|
+
@options = options
|
6
7
|
end
|
7
8
|
|
8
9
|
def ssh
|
@@ -14,9 +15,13 @@ module VagrantPlugins
|
|
14
15
|
end
|
15
16
|
|
16
17
|
def ssh_args
|
18
|
+
log_line = ''
|
19
|
+
log_line = '-o LogLevel=quiet' unless @options[:verbose]
|
20
|
+
|
17
21
|
%W(
|
18
22
|
-p #{@machine.config.unison.ssh_port}
|
19
|
-
|
23
|
+
#{proxy_command}
|
24
|
+
#{log_line}
|
20
25
|
-o StrictHostKeyChecking=no
|
21
26
|
-o UserKnownHostsFile=/dev/null
|
22
27
|
#{identity}
|
@@ -23,7 +23,7 @@ module VagrantPlugins
|
|
23
23
|
machine.communicate.sudo("mkdir -p '#{guest_path}'")
|
24
24
|
machine.communicate.sudo("chown #{ssh_user} '#{guest_path}'")
|
25
25
|
|
26
|
-
ssh_command = SshCommand.new(machine)
|
26
|
+
ssh_command = SshCommand.new(machine, options)
|
27
27
|
shell_command = ShellCommand.new(machine, unison_paths, ssh_command)
|
28
28
|
|
29
29
|
shell_command.prefer_local = options[:prefer_local]
|