From 272b421e0bedfb3488265a8231e8fef590df84fb Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 9 Jan 2011 13:10:52 -0800 Subject: [PATCH] Stylistic change on System mappings --- lib/vagrant/vm.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/vm.rb b/lib/vagrant/vm.rb index ae3a55ed5..60c8bea47 100644 --- a/lib/vagrant/vm.rb +++ b/lib/vagrant/vm.rb @@ -57,7 +57,11 @@ module Vagrant raise Errors::VMSystemError, :_key => :invalid_class, :system => system.to_s if !@system.is_a?(Systems::Base) elsif system.is_a?(Symbol) # Hard-coded internal systems - mapping = { :linux => Systems::Linux, :solaris => Systems::Solaris, :gentoo => Systems::Gentoo } + mapping = { + :linux => Systems::Linux, + :solaris => Systems::Solaris, + :gentoo => Systems::Gentoo + } raise Errors::VMSystemError, :_key => :unknown_type, :system => system.to_s if !mapping.has_key?(system) @system = mapping[system].new(self)