`vagrant status` properly detects no rootfile

This commit is contained in:
Mitchell Hashimoto 2010-04-13 23:04:21 -07:00
parent 4e47e58db5
commit 5a7e8369d5
1 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,12 @@ module Vagrant
def execute(args=[])
wrap_output do
if !env.vm
if !env.root_path
puts <<-msg
No vagrant environment detected. Run `vagrant init` to setup a Vagrantfile
in the current directory to get started with Vagrant.
msg
elsif !env.vm
puts <<-msg
The environment has not yet been created. Run `vagrant up` to create the
environment.