Exports output is in proper format
This commit is contained in:
parent
9f4950375e
commit
5e537f7126
|
@ -38,6 +38,13 @@ module Vagrant
|
||||||
# Returns the folders which are to be synced via NFS.
|
# Returns the folders which are to be synced via NFS.
|
||||||
def folders
|
def folders
|
||||||
@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
|
end
|
||||||
|
|
||||||
# Removes the NFS enabled shared folders from the configuration,
|
# Removes the NFS enabled shared folders from the configuration,
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# VAGRANT-BEGIN: <%= uuid %>
|
# VAGRANT-BEGIN: <%= uuid %>
|
||||||
<%= folders.inspect %>
|
<% folders.each do |name, opts| %><%= opts[:hostpath] %> <%= ip %><% end %>
|
||||||
# VAGRANT-END: <%= uuid %>
|
# VAGRANT-END: <%= uuid %>
|
|
@ -115,6 +115,7 @@ Gem::Specification.new do |s|
|
||||||
"templates/chef_server_client.erb",
|
"templates/chef_server_client.erb",
|
||||||
"templates/chef_solo_solo.erb",
|
"templates/chef_solo_solo.erb",
|
||||||
"templates/network_entry.erb",
|
"templates/network_entry.erb",
|
||||||
|
"templates/nfs/exports.erb",
|
||||||
"templates/package_Vagrantfile.erb",
|
"templates/package_Vagrantfile.erb",
|
||||||
"templates/ssh_config.erb",
|
"templates/ssh_config.erb",
|
||||||
"templates/strings.yml",
|
"templates/strings.yml",
|
||||||
|
@ -177,6 +178,7 @@ Gem::Specification.new do |s|
|
||||||
"test/vagrant/downloaders/http_test.rb",
|
"test/vagrant/downloaders/http_test.rb",
|
||||||
"test/vagrant/environment_test.rb",
|
"test/vagrant/environment_test.rb",
|
||||||
"test/vagrant/hosts/base_test.rb",
|
"test/vagrant/hosts/base_test.rb",
|
||||||
|
"test/vagrant/hosts/bsd_test.rb",
|
||||||
"test/vagrant/provisioners/base_test.rb",
|
"test/vagrant/provisioners/base_test.rb",
|
||||||
"test/vagrant/provisioners/chef_server_test.rb",
|
"test/vagrant/provisioners/chef_server_test.rb",
|
||||||
"test/vagrant/provisioners/chef_solo_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/downloaders/http_test.rb",
|
||||||
"test/vagrant/environment_test.rb",
|
"test/vagrant/environment_test.rb",
|
||||||
"test/vagrant/hosts/base_test.rb",
|
"test/vagrant/hosts/base_test.rb",
|
||||||
|
"test/vagrant/hosts/bsd_test.rb",
|
||||||
"test/vagrant/provisioners/base_test.rb",
|
"test/vagrant/provisioners/base_test.rb",
|
||||||
"test/vagrant/provisioners/chef_server_test.rb",
|
"test/vagrant/provisioners/chef_server_test.rb",
|
||||||
"test/vagrant/provisioners/chef_solo_test.rb",
|
"test/vagrant/provisioners/chef_solo_test.rb",
|
||||||
|
|
Loading…
Reference in New Issue