vagrant-unison-morroni 0.0.21 → 0.0.22

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: 7aaa2262330d7383a213bb36eed5ef3bc9fb5b73
4
- data.tar.gz: 350660fad8bf858ad7814db327ea47215de0c080
3
+ metadata.gz: 159459489a5b3ded6fd5a311e35d3d3f80593391
4
+ data.tar.gz: aa54e011338ee1f6e5f11ac9dc8da2247ec01577
5
5
  SHA512:
6
- metadata.gz: 40ec130afd38a9f01b3905d810cb3a6d4c271d8119c7aef2356135d0f03e25503bb95a5f8146093ea8a72e60c2633663ea069bf2f6092903b2cb8df571baa012
7
- data.tar.gz: bf04535f9a6f52e61b593ad40d61d833420ce80a3ce11eadadb3563b0f9ccc86eaf0aa8d46a39e1282fe705472c5ac3064b07100b96773299dbd68ac570f2dd5
6
+ metadata.gz: 8eae7880fe597a76352207af6c68bb6830417416802739a4f46e0059499b9e2cae317c57492c036de7fd55498e9b3b86e618f3bd9dfb3baea3e0afce8a7cd900
7
+ data.tar.gz: e70c00ddf0b6606995ed548fc2b9b334989f12344e2352bf60fc7e88de9dfb616fa6222ed9860575b046721e098a7f8b8e091f7d300de027ba03fbe719aadd2f
@@ -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
 
@@ -116,7 +116,7 @@ module VagrantPlugins
116
116
  unisonflags = ''
117
117
  end
118
118
  =end
119
- unisonflags = ' -ignorearchives '
119
+ unisonflags = ' -ignorearchives -ignorelocks '
120
120
 
121
121
  command.repeat = true
122
122
  command.terse = true
@@ -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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Unison
3
- VERSION = "0.0.20"
3
+ VERSION = "0.0.21"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-unison-morroni
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Laing
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-01 00:00:00.000000000 Z
11
+ date: 2015-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: listen