vagrant-unison-morroni 0.0.22 → 0.0.23
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 517c5da610e150558d4840b7b66d8479154901a5
|
4
|
+
data.tar.gz: 300785327460ea68eb37f3b8962c9602f47ba196
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d54978283a1aa1f9a10d26ec1c125bfec296b5ff5e6a364f103073f8c5c3ab4bd6ca1b773e8ac62a80b4f6eded1827e9b200c88c9ef1e99df86c525e51a600f7
|
7
|
+
data.tar.gz: c89877f9277d8c9bcf8e06990b0db258b35fe00a0a45049ec65ee1a285b2f57e8fafbdf8a8cf7679865a0c2db9748e449e787250157210fca2c3498566fc6108
|
@@ -69,7 +69,9 @@ module VagrantPlugins
|
|
69
69
|
require "vagrant"
|
70
70
|
require "thread"
|
71
71
|
require 'listen'
|
72
|
-
|
72
|
+
require 'fileutils'
|
73
|
+
|
74
|
+
|
73
75
|
require_relative 'unison_paths'
|
74
76
|
require_relative 'ssh_command'
|
75
77
|
require_relative 'shell_command'
|
@@ -117,7 +119,9 @@ module VagrantPlugins
|
|
117
119
|
end
|
118
120
|
|
119
121
|
slug = properties['SLUG'].chomp.chomp('"').reverse.chomp.chomp('"').reverse
|
120
|
-
unison_dir = ENV['host_proj_dir'] + '/.vagrant/'
|
122
|
+
unison_dir = ENV['host_proj_dir'] + '/.vagrant/unison-files/'
|
123
|
+
FileUtils.rm_rf(unison_dir)
|
124
|
+
Dir.mkdir(unison_dir)
|
121
125
|
|
122
126
|
command.repeat = true
|
123
127
|
command.terse = true
|
@@ -105,22 +105,23 @@ module VagrantPlugins
|
|
105
105
|
ssh_command = SshCommand.new(@@machine, unison_paths)
|
106
106
|
command = ShellCommand.new(@@machine, unison_paths, ssh_command)
|
107
107
|
|
108
|
-
|
108
|
+
|
109
109
|
#load @@machine.env.root_path.to_s + '/include-common/load-ini/load-ini.rb'
|
110
|
-
load ENV['host_proj_dir'] + '/include-common/load-ini/
|
110
|
+
load ENV['host_proj_dir'] + '/include-common/load-ini/load_ini.rb'
|
111
111
|
|
112
112
|
properties = load_ini()
|
113
113
|
if (properties.has_key?('UNISONFLAGS'))
|
114
|
-
unisonflags = ' '+properties['UNISONFLAGS']+' '
|
114
|
+
unisonflags = ' '+properties['UNISONFLAGS'].chomp.chomp('"').reverse.chomp.chomp('"').reverse+' '
|
115
115
|
else
|
116
116
|
unisonflags = ''
|
117
117
|
end
|
118
|
-
|
119
|
-
|
118
|
+
|
119
|
+
slug = properties['SLUG'].chomp.chomp('"').reverse.chomp.chomp('"').reverse
|
120
|
+
unison_dir = ENV['host_proj_dir'] + '/.vagrant/'
|
120
121
|
|
121
122
|
command.repeat = true
|
122
123
|
command.terse = true
|
123
|
-
command = command.to_s + unisonflags + ' > ' + @@machine.env.root_path.to_s + '/.vagrant/unison.log 2>&1 &'
|
124
|
+
command = 'UNISON='+unison_dir+' '+command.to_s + unisonflags + ' > ' + @@machine.env.root_path.to_s + '/.vagrant/unison.log 2>&1 &'
|
124
125
|
|
125
126
|
@@machine.env.ui.info "Running #{command}"
|
126
127
|
|