From 75b1df2f2fa74e830305c2626949f4bc03613a6d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 20 May 2010 16:15:43 -0700 Subject: [PATCH] Got rid of parent modules for stringhelper/outputhelper. Removed error/wrap_output from util.rb --- lib/vagrant/util.rb | 20 -------------------- lib/vagrant/util/error_helper.rb | 6 ++---- lib/vagrant/util/output_helper.rb | 10 ++++------ lib/vagrant/util/template_renderer.rb | 4 ++-- vagrant.gemspec | 12 ++++++++++++ 5 files changed, 20 insertions(+), 32 deletions(-) diff --git a/lib/vagrant/util.rb b/lib/vagrant/util.rb index c7fa3ae74..35a83f37f 100644 --- a/lib/vagrant/util.rb +++ b/lib/vagrant/util.rb @@ -1,25 +1,5 @@ module Vagrant module Util - def self.included(base) - base.extend Vagrant::Util - end - - def wrap_output - puts "=====================================================================" - yield - puts "=====================================================================" - end - - def error_and_exit(key, data = {}) - abort <<-error -===================================================================== -Vagrant experienced an error! - -#{Translator.t(key, data).chomp} -===================================================================== -error - end - def logger Logger.singleton_logger end diff --git a/lib/vagrant/util/error_helper.rb b/lib/vagrant/util/error_helper.rb index 235217611..6286f36ef 100644 --- a/lib/vagrant/util/error_helper.rb +++ b/lib/vagrant/util/error_helper.rb @@ -1,15 +1,13 @@ module Vagrant module Util - module ErrorHelper - def error_and_exit(key, data = {}) - abort <<-error + def error_and_exit(key, data = {}) + abort <<-error ===================================================================== Vagrant experienced an error! #{Translator.t(key, data).chomp} ===================================================================== error - end end end end diff --git a/lib/vagrant/util/output_helper.rb b/lib/vagrant/util/output_helper.rb index ffdca3678..99257b41a 100644 --- a/lib/vagrant/util/output_helper.rb +++ b/lib/vagrant/util/output_helper.rb @@ -1,11 +1,9 @@ module Vagrant module Util - module OutputHelper - def wrap_output - puts "=====================================================================" - yield - puts "=====================================================================" - end + def wrap_output + puts "=====================================================================" + yield + puts "=====================================================================" end end end diff --git a/lib/vagrant/util/template_renderer.rb b/lib/vagrant/util/template_renderer.rb index 560aa5c8c..74971a075 100644 --- a/lib/vagrant/util/template_renderer.rb +++ b/lib/vagrant/util/template_renderer.rb @@ -6,7 +6,7 @@ module Vagrant # This class is used to render the ERB templates in the # `GEM_ROOT/templates` directory. class TemplateRenderer < OpenStruct - class <