vagrant-vaimo-unison 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/CHANGELOG.md +0 -0
- data/Gemfile +0 -0
- data/LICENSE +0 -0
- data/README.md +6 -0
- data/Rakefile +0 -0
- data/lib/vagrant-vaimo-unison/command.rb +3 -3
- data/lib/vagrant-vaimo-unison/config.rb +7 -0
- data/lib/vagrant-vaimo-unison/errors.rb +0 -0
- data/lib/vagrant-vaimo-unison/shell_command.rb +14 -0
- data/lib/vagrant-vaimo-unison/version.rb +1 -1
- data/lib/vagrant-vaimo-unison.rb +0 -0
- data/locales/en.yml +0 -0
- data/spec/vagrant-unison/config_spec.rb +4 -0
- data/vagrant-vaimo-unison.gemspec +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7722d3d705a217a1a3cb2840bed3216d04d6839a
|
4
|
+
data.tar.gz: 19bbf9feb84fa5c03d8b6b29f0900a8180aa49a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/vagrant-vaimo-unison.rb
CHANGED
File without changes
|
data/locales/en.yml
CHANGED
File without changes
|
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.
|
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-
|
14
|
+
date: 2017-10-26 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rake
|