lib/vagrant/commands/init.rb in vagrant-0.3.0 vs lib/vagrant/commands/init.rb in vagrant-0.3.1

- old
+ new

@@ -19,10 +19,10 @@ # @param [String] default_box The default base box for this Vagrantfile def create_vagrantfile(default_box=nil) rootfile_path = File.join(Dir.pwd, Environment::ROOTFILE_NAME) error_and_exit(:rootfile_already_exists) if File.exist?(rootfile_path) - # Copy over the rootfile template into this directory + # Write the rootfile default_box ||= "base" File.open(rootfile_path, 'w+') do |f| f.write(TemplateRenderer.render(Environment::ROOTFILE_NAME, :default_box => default_box)) end end \ No newline at end of file