Browse files

Do not use global node attributes namespace

  • Loading branch information...
1 parent 69728ed commit f03c12ed586d7921f691cb3a124290b20193fa7d @michaelklishin michaelklishin committed Jul 30, 2011
View
5 vagrant_base/travis_build_environment/attributes/default.rb
@@ -1,2 +1,3 @@
-default[:travis_build_environment][:hosts] = Hash.new
-default[:travis_build_environment][:builds_volume_size] = "350m"
+default[:travis_build_environment][:hosts] = Hash.new
+default[:travis_build_environment][:builds_volume_size] = "350m"
+default[:travis_build_environment][:use_tmpfs_for_builds] = false
View
2 vagrant_base/travis_build_environment/recipes/vagrant.rb
@@ -55,7 +55,7 @@
action :create
end
-if node[:use_tmpfs]
+if node.travis_build_environment.use_tmpfs_for_builds
mount "/home/vagrant/builds" do
fstype "tmpfs"
device "/dev/null" # http://tickets.opscode.com/browse/CHEF-1657, doesn't seem to be included in 0.10.0

0 comments on commit f03c12e

Please sign in to comment.