diff --git a/plugins/commands/serve/util.rb b/plugins/commands/serve/util.rb index 1a6faedbb..a095163c6 100644 --- a/plugins/commands/serve/util.rb +++ b/plugins/commands/serve/util.rb @@ -31,6 +31,17 @@ module VagrantPlugins end end + module HasMapper + def mapper + @mapper + end + + def initialize(*args, **opts, &block) + @mapper = Mappers.new(broker) if respond_to?(:broker) + super + end + end + # Adds exception logging to all public instance methods module ExceptionLogger def self.prepended(klass)