vagrant-vaimo-unison 0.1.0 → 0.2.0

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: 082fe642839fc7f5f951dc7ce097399fc77e8d53
4
- data.tar.gz: 6edb0d30b2dc5bb26063bb312221539d057b1060
3
+ metadata.gz: 7722d3d705a217a1a3cb2840bed3216d04d6839a
4
+ data.tar.gz: 19bbf9feb84fa5c03d8b6b29f0900a8180aa49a0
5
5
  SHA512:
6
- metadata.gz: a466b2ffb35765ae19f003e1ac993c18d0f325150a326ef4aad42045f70b841d4d1ea0433daf5e4cb03304d137206508fa07f11ddeabdea9ca37e6ec90abd391
7
- data.tar.gz: a61d815896c8cc7a4053fdb8443fef1fa42100b0553f488e2c84bd06de1ce1ed17accd9e405a7d4944013c174c906a38f5426472b538f1ba5fc3c732205a6c38
6
+ metadata.gz: 097c54aa51cfaeecf7ea5c5b5f39563a5e52c838d43865b786a55f8c71e692947c6471af4acca8ebde346ccaeba443da611ff6f86ef3ec649bf35b0dbc8966b4
7
+ data.tar.gz: 80a3280cbb3bc78287886eefdcad1489613ca24d119dcf3a5157102e8e9f73c2baac3957bc338860db2708fa8bf1e40efe1c72d38998db743e907e0aab936730
data/.gitignore CHANGED
File without changes
data/CHANGELOG.md CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
@@ -153,6 +153,12 @@ To work on the `vagrant-unison` plugin, clone this repository out, and use
153
153
  $ bundle
154
154
  ```
155
155
 
156
+ When using devbox for development and testing then be sure to install ruby-dev
157
+
158
+ ```
159
+ $ sudo apt-get install ruby-dev
160
+ ```
161
+
156
162
  Once you have the dependencies, verify the unit tests pass with `rake`:
157
163
 
158
164
  ```
data/Rakefile CHANGED
File without changes
@@ -24,7 +24,7 @@ module VagrantPlugins
24
24
  command.terse = true
25
25
  command = command.to_s
26
26
 
27
- @env.ui.info 'Running unison once '
27
+ @env.ui.info 'Running unison once'
28
28
  @env.ui.info " #{command}"
29
29
 
30
30
  status = system(command)
@@ -33,9 +33,9 @@ module VagrantPlugins
33
33
  end
34
34
  if status
35
35
  return 0
36
- else
37
- return 1
38
36
  end
37
+
38
+ 1
39
39
  end
40
40
  end
41
41
 
@@ -18,6 +18,11 @@ module VagrantPlugins
18
18
  # @return [String, Array<String>]
19
19
  attr_accessor :ignore
20
20
 
21
+ # Pattern of files to ignorenot.
22
+ #
23
+ # @return [String, Array<String>]
24
+ attr_accessor :ignorenot
25
+
21
26
  # Repeat speed.
22
27
  #
23
28
  # @return [String]
@@ -59,6 +64,7 @@ module VagrantPlugins
59
64
  @host_folder = UNSET_VALUE
60
65
  @guest_folder = UNSET_VALUE
61
66
  @ignore = UNSET_VALUE
67
+ @ignorenot = UNSET_VALUE
62
68
  @repeat = UNSET_VALUE
63
69
  @ssh_host = UNSET_VALUE
64
70
  @ssh_port = UNSET_VALUE
@@ -73,6 +79,7 @@ module VagrantPlugins
73
79
  @host_folder = nil if @host_folder == UNSET_VALUE
74
80
  @guest_folder = nil if @guest_folder == UNSET_VALUE
75
81
  @ignore = nil if @ignore == UNSET_VALUE
82
+ @ignorenot = nil if @ignorenot == UNSET_VALUE
76
83
  @repeat = 1 if @repeat == UNSET_VALUE
77
84
  @ssh_host = '127.0.0.1' if @ssh_host == UNSET_VALUE
78
85
  @ssh_port = 2222 if @ssh_port == UNSET_VALUE
File without changes
@@ -34,6 +34,7 @@ module VagrantPlugins
34
34
  terse_arg,
35
35
  repeat_arg,
36
36
  ignore_arg,
37
+ ignorenot_arg,
37
38
  perms_arg,
38
39
  force_arg,
39
40
  prefer_arg,
@@ -70,6 +71,19 @@ module VagrantPlugins
70
71
  end
71
72
  end
72
73
 
74
+ def ignorenot_arg
75
+ patterns = []
76
+ if @machine.config.unison.ignorenot.is_a? ::Array
77
+ patterns += @machine.config.unison.ignorenot
78
+ elsif @machine.config.unison.ignorenot
79
+ patterns << @machine.config.unison.ignorenot
80
+ end
81
+
82
+ patterns.map do |pattern|
83
+ ['-ignorenot', %("#{pattern}")]
84
+ end
85
+ end
86
+
73
87
  def perms_arg
74
88
  ['-perms', @machine.config.unison.perms] if @machine.config.unison.perms
75
89
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Unison
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
File without changes
data/locales/en.yml CHANGED
File without changes
@@ -21,6 +21,10 @@ describe VagrantPlugins::Unison::Config do
21
21
  its('ignore') {
22
22
  should be_nil
23
23
  }
24
+
25
+ its('ignorenot') {
26
+ should be_nil
27
+ }
24
28
  end
25
29
 
26
30
  describe 'overriding defaults' do
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vaimo-unison
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Laing
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-07-26 00:00:00.000000000 Z
14
+ date: 2017-10-26 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake