lib/vagrant-unison2/shell_command.rb in vagrant-unison2-1.2.2 vs lib/vagrant-unison2/shell_command.rb in vagrant-unison2-1.2.3

- old
+ new

@@ -29,10 +29,11 @@ @ssh_command.uri(@unison_paths), batch_arg, terse_arg, repeat_arg, ignore_arg, + perms_arg, ['-sshargs', %("#{@ssh_command.ssh_args}")], ].flatten.compact _args end @@ -40,9 +41,13 @@ '-batch' if batch end def ignore_arg ['-ignore', %("#{@machine.config.unison.ignore}")] if @machine.config.unison.ignore + end + + def perms_arg + ['-perms', @machine.config.unison.perms] if @machine.config.unison.perms end def repeat_arg ['-repeat', @machine.config.unison.repeat] if repeat && @machine.config.unison.repeat end