From 7ff428d5c2b79fe7ba50fe921c7534ddb444b0a0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 11 Feb 2010 00:51:21 -0800 Subject: [PATCH] `vagrant init` command. Used for initializing directories with vagrant. --- .gitignore | 3 ++- lib/vagrant/commands.rb | 14 +++++++++++++- templates/Vagrantfile | 5 +++++ test/vagrant/commands_test.rb | 20 ++++++++++++++++++++ 4 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 templates/Vagrantfile diff --git a/.gitignore b/.gitignore index c1b26a4ed..47f22ca4c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ Vagrantfile .bundle *.lock cookbooks/* -_site/* \ No newline at end of file +_site/* +!templates/* \ No newline at end of file diff --git a/lib/vagrant/commands.rb b/lib/vagrant/commands.rb index 99cac954e..27afdd279 100644 --- a/lib/vagrant/commands.rb +++ b/lib/vagrant/commands.rb @@ -7,9 +7,21 @@ module Vagrant extend Vagrant::Util class <