Sha256: 97c2f01788a4dc7cf4b8dac923bc962201092b797d26ade06ddd37945eb4bb46

Contents?: true

Size: 478 Bytes

Versions: 4

Compression:

Stored size: 478 Bytes

Contents

module VagrantPlugins
  module CommandServe
    module Util
      # Adds mapper initialization and will include
      module HasMapper
        def mapper
          return @mapper if @mapper
          @mapper = Mappers.new
          if respond_to?(:broker) && broker
            @mapper.add_argument(broker)
          end
          if respond_to?(:cacher) && cacher
            @mapper.add_argument(cacher)
          end
          @mapper
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/commands/serve/util/has_mapper.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/commands/serve/util/has_mapper.rb
vagrant-unbundled-2.3.3.0 plugins/commands/serve/util/has_mapper.rb
vagrant-unbundled-2.3.2.0 plugins/commands/serve/util/has_mapper.rb