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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94d3ce9a1598b2afa84fae47b829b9f6679a30ec
4
- data.tar.gz: 2c18ff49dc0f120f3eba97e8810e8209c4cf6799
3
+ metadata.gz: dadaf97948dbe3b7a298764fb71c82a08ad47ad4
4
+ data.tar.gz: dfd07c61e2c17d1a9a00536f583e6c32e567444c
5
5
  SHA512:
6
- metadata.gz: 25c9520ae892b6e64b8ae18a527d1ef08d5af72f933a072ab56bf099ea918616ce36cdc33b7cd4d890a38a5f9a3d537c9ac48d491123a3f63139bca9cf99c211
7
- data.tar.gz: ac7bfb0fbc7bd16857270f5f7a7449d6054a9ee9e40482ab3e50d39858cc0941e72cb1d77847093732219ec70f731fb6e28cda7df0e50246deac77d98af35e16
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
- `vagrant reload`, and `vagrant provision`, the Actin.IO provider
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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module NitrousIO
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
@@ -1 +1 @@
1
- Hello
1
+ Hello world
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-nitrousio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Irrational Industries Inc.