vagrant-unison-morroni 0.0.17 → 0.0.18

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: 75c1475be13bdce2a2d98df72246e21e329e32ea
4
- data.tar.gz: 47fc0845a101569d1e7f66db0f9f26b78040ed6e
3
+ metadata.gz: 776dc2b957861b1dfbf01b254868ad5b1159efec
4
+ data.tar.gz: d2e89b86f55d85103667a48c71bd28ce92c64573
5
5
  SHA512:
6
- metadata.gz: f428b4df4665910a6f319c9cfaa21021e1e78cbae4a8b0b8274d2c69e242dc45487a662ce494e02b768f6715b62f10b58f8882ac917205dd17a40b081f82b56b
7
- data.tar.gz: f8181cdcaf04cb1b254d34300831bce8f2be4cc51ba06311bcd13fbadb166beb7957d40527527d32dd403861ef1f5578d188bf208aa3aa4c5d2a9e8f23522821
6
+ metadata.gz: 17c0e28cd941b0ca1bfb2ee10437b354d08127dade23b9be90c94fd4121bb16c924919db2acd19a5ec16f52e4a3b1749f47b3e715b013dc402b2abb728a71a78
7
+ data.tar.gz: 0599cf16a811a08c39358aa91bf7e83e489dc7f695053c2571157b365dcbd9524526080d26ed4cb254c0d51d7a5d10976385708150e348f42be839c582cf2c16
@@ -56,8 +56,8 @@ module VagrantPlugins
56
56
  def validate(machine)
57
57
  errors = []
58
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?
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
61
 
62
62
  { "Unison" => errors }
63
63
  end
@@ -0,0 +1,66 @@
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Unison
3
- VERSION = "0.0.16"
3
+ VERSION = "0.0.17"
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.17
4
+ version: 0.0.18
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-21 00:00:00.000000000 Z
11
+ date: 2015-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: listen
@@ -109,6 +109,7 @@ 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~
112
113
  - lib/vagrant-unison-morroni/errors.rb
113
114
  - lib/vagrant-unison-morroni/plugin.rb
114
115
  - lib/vagrant-unison-morroni/shell_command.rb