vagrant-unison-morroni 0.0.18 → 0.0.19

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: 776dc2b957861b1dfbf01b254868ad5b1159efec
4
- data.tar.gz: d2e89b86f55d85103667a48c71bd28ce92c64573
3
+ metadata.gz: 30a1e3610b031aeb5831e9c317d33d9a1043118f
4
+ data.tar.gz: 47dafdfc4653ef9ad3cfdc1b960e084663f9c7d8
5
5
  SHA512:
6
- metadata.gz: 17c0e28cd941b0ca1bfb2ee10437b354d08127dade23b9be90c94fd4121bb16c924919db2acd19a5ec16f52e4a3b1749f47b3e715b013dc402b2abb728a71a78
7
- data.tar.gz: 0599cf16a811a08c39358aa91bf7e83e489dc7f695053c2571157b365dcbd9524526080d26ed4cb254c0d51d7a5d10976385708150e348f42be839c582cf2c16
6
+ metadata.gz: bf0d8490596d157fd23c1018cdee4b9fbdf2278e35beeb5e352a7ab90f4379da94f27b4cbb4a6cb01c5c8bbe794e3d592e65548f24f11bfc1c987cdfc261c956
7
+ data.tar.gz: 73e0a8fc3d0b4f9c492a07f6cd8ef69d549711c729ffacb01a5b841f70076d860e4c6e0ab4a16849979023fb51c59253aba92ff92b2971fd918b3d45f9d3949b
@@ -107,7 +107,7 @@ module VagrantPlugins
107
107
 
108
108
  command.repeat = true
109
109
  command.terse = true
110
- command = command.to_s + '> ' + @@machine.env.root_path.to_s + '/.vagrant/unison.log 2>&1 &'
110
+ command = command.to_s + ' -ignorearchives > ' + @@machine.env.root_path.to_s + '/.vagrant/unison.log 2>&1 &'
111
111
 
112
112
  @@machine.env.ui.info "Running #{command}"
113
113
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Unison
3
- VERSION = "0.0.18"
3
+ VERSION = "0.0.19"
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Unison
3
- VERSION = "0.0.17"
3
+ VERSION = "0.0.18"
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.18
4
+ version: 0.0.19
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-07-22 00:00:00.000000000 Z
11
+ date: 2015-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: listen
@@ -109,7 +109,6 @@ files:
109
109
  - lib/vagrant-unison-morroni.rb
110
110
  - lib/vagrant-unison-morroni/command.rb
111
111
  - lib/vagrant-unison-morroni/config.rb
112
- - lib/vagrant-unison-morroni/config.rb~
113
112
  - lib/vagrant-unison-morroni/errors.rb
114
113
  - lib/vagrant-unison-morroni/plugin.rb
115
114
  - lib/vagrant-unison-morroni/shell_command.rb
@@ -1,66 +0,0 @@
1
- require "vagrant"
2
-
3
- module VagrantPlugins
4
- module Unison
5
- class Config < Vagrant.plugin("2", :config)
6
- # Host Folder to Sync
7
- #
8
- # @return [String]
9
- attr_accessor :host_folder
10
-
11
- # Guest Folder to Sync.
12
- #
13
- # @return [String]
14
- attr_accessor :guest_folder
15
-
16
- # Pattern of files to ignore.
17
- #
18
- # @return [String]
19
- attr_accessor :ignore
20
-
21
- # Repeat speed.
22
- #
23
- # @return [String]
24
- attr_accessor :repeat
25
-
26
- def initialize(region_specific=false)
27
- @host_folder = UNSET_VALUE
28
- @remote_folder = UNSET_VALUE
29
- @ignore = UNSET_VALUE
30
- @repeat = UNSET_VALUE
31
- end
32
-
33
- #-------------------------------------------------------------------
34
- # Internal methods.
35
- #-------------------------------------------------------------------
36
-
37
- # def merge(other)
38
- # super.tap do |result|
39
- # # TODO - do something sensible; current last config wins
40
- # result.local_folder = other.local_folder
41
- # result.remote_folder = other.remote_folder
42
- # end
43
- # end
44
-
45
- def finalize!
46
- # The access keys default to nil
47
- @host_folder = nil if @host_folder == UNSET_VALUE
48
- @guest_folder = nil if @guest_folder == UNSET_VALUE
49
- @ignore = nil if @ignore == UNSET_VALUE
50
- @repeat = 1 if @repeat == UNSET_VALUE
51
-
52
- # Mark that we finalized
53
- @__finalized = true
54
- end
55
-
56
- def validate(machine)
57
- errors = []
58
-
59
- errors << I18n.t("vagrant_sync.config.host_folder_required") if @host_folder.nil?
60
- errors << I18n.t("vagrant_sync.config.guest_folder_required") if @guest_folder.nil?
61
-
62
- { "Unison" => errors }
63
- end
64
- end
65
- end
66
- end