From caf4ea722e23fa1d1242044ccabe3bfaf6193c1e Mon Sep 17 00:00:00 2001 From: Frank Shearar Date: Tue, 14 May 2013 21:22:19 +0100 Subject: [PATCH 1/2] Import the TemplateRenderer (like the other guests do). --- plugins/guests/arch/cap/configure_networks.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/guests/arch/cap/configure_networks.rb b/plugins/guests/arch/cap/configure_networks.rb index 11fda5ded..e47227e12 100644 --- a/plugins/guests/arch/cap/configure_networks.rb +++ b/plugins/guests/arch/cap/configure_networks.rb @@ -1,3 +1,7 @@ +require "tempfile" + +require "vagrant/util/template_renderer" + module VagrantPlugins module GuestArch module Cap From 2eb97b518cb47640067970dcc3a8364f1dd2ff11 Mon Sep 17 00:00:00 2001 From: Frank Shearar Date: Wed, 22 May 2013 16:29:58 +0100 Subject: [PATCH 2/2] You need to include the module to use the class without ::s. --- plugins/guests/arch/cap/configure_networks.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/guests/arch/cap/configure_networks.rb b/plugins/guests/arch/cap/configure_networks.rb index e47227e12..d2cbcb918 100644 --- a/plugins/guests/arch/cap/configure_networks.rb +++ b/plugins/guests/arch/cap/configure_networks.rb @@ -6,6 +6,8 @@ module VagrantPlugins module GuestArch module Cap class ConfigureNetworks + include Vagrant::Util + def self.configure_networks(machine, networks) networks.each do |network| entry = TemplateRenderer.render("guests/arch/network_#{network[:type]}",