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: 159459489a5b3ded6fd5a311e35d3d3f80593391
4
- data.tar.gz: aa54e011338ee1f6e5f11ac9dc8da2247ec01577
3
+ metadata.gz: 517c5da610e150558d4840b7b66d8479154901a5
4
+ data.tar.gz: 300785327460ea68eb37f3b8962c9602f47ba196
5
5
  SHA512:
6
- metadata.gz: 8eae7880fe597a76352207af6c68bb6830417416802739a4f46e0059499b9e2cae317c57492c036de7fd55498e9b3b86e618f3bd9dfb3baea3e0afce8a7cd900
7
- data.tar.gz: e70c00ddf0b6606995ed548fc2b9b334989f12344e2352bf60fc7e88de9dfb616fa6222ed9860575b046721e098a7f8b8e091f7d300de027ba03fbe719aadd2f
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
- =begin
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/load-ini.rb'
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
- =end
119
- unisonflags = ' -ignorearchives -ignorelocks '
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
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Unison
3
- VERSION = "0.0.22"
3
+ VERSION = "0.0.23"
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Unison
3
- VERSION = "0.0.21"
3
+ VERSION = "0.0.22"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-unison-morroni
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Laing