From 89fb68429738b58b6c8e945e636746212f1eac90 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 19 Jan 2012 17:41:34 -0800 Subject: [PATCH] Add a deprecation error for `config.vm.system=` [GH-653] --- lib/vagrant/config/vm.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/vagrant/config/vm.rb b/lib/vagrant/config/vm.rb index 63da00c0e..0a44c1663 100644 --- a/lib/vagrant/config/vm.rb +++ b/lib/vagrant/config/vm.rb @@ -39,6 +39,14 @@ module Vagrant result end + def system=(value) + raise Errors::DeprecationError, :message => <<-MESSAGE +`config.vm.system` has changed to `config.vm.guest` in Vagrant 0.9, +since this is more clear about the use of the configuration key. +Please change all references of `config.vm.system` to `config.vm.guest`. + MESSAGE + end + def forward_port(guestport, hostport, options=nil) if !guestport.kind_of?(Integer) raise Errors::DeprecationError, :message => <<-MESSAGE