vagrant-vaimo-unison 1.1.0 → 1.1.1

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
  SHA1:
3
- metadata.gz: 319e8a96dda86e57d96b6f6dbb1705074774d25b
4
- data.tar.gz: 52c3960d155fed81eb047570804862511fb4c4de
3
+ metadata.gz: 24f75e1e50ff04b853a487320f12cd1834a8717d
4
+ data.tar.gz: d02d9fcb2470a0fa91eee58cacfcd2149a42d357
5
5
  SHA512:
6
- metadata.gz: 8193b9ae8c364c2d5800fb87e1ac9d1238a2bfa369d72fa6367c42408bd683c2cf1f027c4b051a638f253ed379f871e1d219a128d016b5928fbadadd2d89778f
7
- data.tar.gz: 0ff882e69b5d70deab46614a9e0d81d18ceffbe7cedeffc4ecd7a1febac11509b0b089177ece4d51d0477e2d32f21c46e9277be4c361c1e650af1db21c26eb37
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
- #{proxy_command}
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]
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Unison
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vaimo-unison
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Laing