vagrant-vaimo-unison 2.0.1 → 2.0.2

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: 499ff3f8da07b22b1dd5d2d0282adea2937eab07
4
- data.tar.gz: 1430d002148b906fbc7fdbf8ace03ba7fe1d95c2
3
+ metadata.gz: 20d076324ca8f25800a53bd151ec7f6ca60707dc
4
+ data.tar.gz: aeb4809321eaa49bae3faf5103928aab4f86d7d8
5
5
  SHA512:
6
- metadata.gz: 96fec8f4cf76528e179564dd43e69feab15571121676b313a35203f330d7e812021c0bd982e7a2d7beb30ef35214df2299cffd83aabf64445b0f375a02cc5e6b
7
- data.tar.gz: d5cc9b993f1d661416120004b19c32cabde149606408cec4008acb1d5c37bc9e1d32eaa6bb919ca2eaf3eeb1f90c2324c94d16427b04e78ba83531e4210b07e6
6
+ metadata.gz: 53dd3543cfa29a444dc14f0e1002dffeab8cbe44b17e3ca9be071e53eeac3b063f67d1003cb3c435c6b86de8be5ebd13fda3db87af96d81f6ab773414ff8fc9b
7
+ data.tar.gz: 294085065542b4ebd4c00a008b0781a4f8e1c706a3a545cf307c5362d6a583f50ecee9d8260609f35bd21fec5416faf50ddfcfe603fae3ebaffc2ffe10e060af
@@ -120,17 +120,20 @@ module VagrantPlugins
120
120
 
121
121
  # Command Cleanup
122
122
  class CommandCleanup < Vagrant.plugin('2', :command)
123
+ include UnisonSync
124
+
123
125
  def self.synopsis
124
126
  'Remove archives and configuration from host and guest. Keeps files in guest (need to remove manually if needed)'
125
127
  end
126
128
 
127
129
  def execute
128
130
  with_target_vms do |machine|
131
+ ssh_user = machine.config.unison.ssh_user
129
132
  command = "rm -rf ~/Library/'Application Support'/Unison/*"
130
133
  @env.ui.info "Running #{command} on host" if options[:verbose]
131
134
  system(command)
132
135
 
133
- command = 'rm -rf ~/.unison'
136
+ command = "sudo -H -u #{ssh_user} sh -c 'rm -rf ~/.unison'"
134
137
  @env.ui.info "Running #{command} on guest VM" if options[:verbose]
135
138
  machine.communicate.execute(command)
136
139
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Unison
3
- VERSION = '2.0.1'
3
+ VERSION = '2.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vaimo-unison
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platform Team @ Vaimo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-08 00:00:00.000000000 Z
11
+ date: 2018-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake