From e3b1f7ed1eeea7e6d544d72ffbc1b225d31711b5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 25 Aug 2010 16:12:08 -0700 Subject: [PATCH] `vagrant -v` works again [closes GH-147] --- lib/vagrant/command/version.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib/vagrant/command/version.rb diff --git a/lib/vagrant/command/version.rb b/lib/vagrant/command/version.rb new file mode 100644 index 000000000..31741b574 --- /dev/null +++ b/lib/vagrant/command/version.rb @@ -0,0 +1,12 @@ +module Vagrant + module Command + class VersionCommand < Base + desc "Prints the Vagrant version information" + register "version", :alias => %w(-v --version) + + def version + env.ui.info "Vagrant version #{Vagrant::VERSION}" + end + end + end +end