vagrant-nitrousio 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/vagrant-nitrousio/action/sync_folders.rb +9 -0
- data/lib/vagrant-nitrousio/version.rb +1 -1
- data/sample/test/hello.txt +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dadaf97948dbe3b7a298764fb71c82a08ad47ad4
|
4
|
+
data.tar.gz: dfd07c61e2c17d1a9a00536f583e6c32e567444c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acfdc7bc7e69bfc2bc28489d36e2fcf5a65d3f2de91e607a9a9c77ac734e68bcc2442eea91f55cab362f6d41ed5735501554d363b86982c54fcc788a12e2d77b
|
7
|
+
data.tar.gz: 9c6fa47c05c3ce392b492f704fcaab89c280f23aab2bd691ae86c7c3b75df0dcc2f183d8a564097a85be9b4661ef2f7ccc2e274a1801a16d9f185b03d1e7a710
|
data/README.md
CHANGED
@@ -83,8 +83,8 @@ the Nitrous.IO box.
|
|
83
83
|
|
84
84
|
## Synced Folders
|
85
85
|
|
86
|
-
There is minimal support for synced folders. Upon `vagrant up
|
87
|
-
|
86
|
+
There is minimal support for synced folders. Upon `vagrant up`
|
87
|
+
and `vagrant provision`, the Nitrous.IO provider
|
88
88
|
will use `rsync` (if available) to uni-directionally sync the folder
|
89
89
|
to the remote machine over SSH.
|
90
90
|
|
@@ -8,6 +8,8 @@ module VagrantPlugins
|
|
8
8
|
# This middleware uses `rsync` to sync the folders over to the
|
9
9
|
# Nitrous.IO box.
|
10
10
|
class SyncFolders
|
11
|
+
include Vagrant::Action::Builtin::MixinSyncedFolders
|
12
|
+
|
11
13
|
def initialize(app, env)
|
12
14
|
@app = app
|
13
15
|
@logger = Log4r::Logger.new("vagrant_nitrousio::action::sync_folders")
|
@@ -19,6 +21,11 @@ module VagrantPlugins
|
|
19
21
|
ssh_info = env[:machine].ssh_info
|
20
22
|
|
21
23
|
env[:machine].config.vm.synced_folders.each do |id, data|
|
24
|
+
data = scoped_hash_override(data, :nitrousio)
|
25
|
+
|
26
|
+
#Ignore disabled shared folders
|
27
|
+
next if data[:disabled]
|
28
|
+
|
22
29
|
hostpath = File.expand_path(data[:hostpath], env[:root_path])
|
23
30
|
guestpath = data[:guestpath]
|
24
31
|
|
@@ -50,6 +57,8 @@ module VagrantPlugins
|
|
50
57
|
:stderr => r.stderr
|
51
58
|
end
|
52
59
|
end
|
60
|
+
|
61
|
+
save_synced_folders(env[:machine], synced_folders(env[:machine]), merge: true)
|
53
62
|
end
|
54
63
|
end
|
55
64
|
end
|
data/sample/test/hello.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Hello
|
1
|
+
Hello world
|