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 +4 -4
- data/lib/vagrant-vaimo-unison/command.rb +4 -1
- data/lib/vagrant-vaimo-unison/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20d076324ca8f25800a53bd151ec7f6ca60707dc
|
4
|
+
data.tar.gz: aeb4809321eaa49bae3faf5103928aab4f86d7d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2018-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|