Exports output is in proper format

This commit is contained in:
Mitchell Hashimoto 2010-07-12 22:26:01 -07:00
parent 9f4950375e
commit 5e537f7126
3 changed files with 11 additions and 1 deletions

View File

@ -38,6 +38,13 @@ module Vagrant
# Returns the folders which are to be synced via NFS.
def folders
@folders ||= {}
@folders.inject({}) do |acc, data|
key, opts = data
opts = opts.dup
opts[:hostpath] = File.expand_path(opts[:hostpath], @env.env.root_path)
acc[key] = opts
acc
end
end
# Removes the NFS enabled shared folders from the configuration,

View File

@ -1,3 +1,3 @@
# VAGRANT-BEGIN: <%= uuid %>
<%= folders.inspect %>
<% folders.each do |name, opts| %><%= opts[:hostpath] %> <%= ip %><% end %>
# VAGRANT-END: <%= uuid %>

View File

@ -115,6 +115,7 @@ Gem::Specification.new do |s|
"templates/chef_server_client.erb",
"templates/chef_solo_solo.erb",
"templates/network_entry.erb",
"templates/nfs/exports.erb",
"templates/package_Vagrantfile.erb",
"templates/ssh_config.erb",
"templates/strings.yml",
@ -177,6 +178,7 @@ Gem::Specification.new do |s|
"test/vagrant/downloaders/http_test.rb",
"test/vagrant/environment_test.rb",
"test/vagrant/hosts/base_test.rb",
"test/vagrant/hosts/bsd_test.rb",
"test/vagrant/provisioners/base_test.rb",
"test/vagrant/provisioners/chef_server_test.rb",
"test/vagrant/provisioners/chef_solo_test.rb",
@ -259,6 +261,7 @@ Gem::Specification.new do |s|
"test/vagrant/downloaders/http_test.rb",
"test/vagrant/environment_test.rb",
"test/vagrant/hosts/base_test.rb",
"test/vagrant/hosts/bsd_test.rb",
"test/vagrant/provisioners/base_test.rb",
"test/vagrant/provisioners/chef_server_test.rb",
"test/vagrant/provisioners/chef_solo_test.rb",