Move remote communicator to remote plugin module

This commit is contained in:
sophia 2021-12-08 10:49:38 -06:00 committed by Paul Hinze
parent b9e7d2197e
commit ab395ad730
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
4 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,7 @@ require "log4r"
module Vagrant
module Plugin
module Remote
autoload :Communicator, "vagrant/plugin/remote/communicator"
autoload :Plugin, "vagrant/plugin/remote/plugin"
autoload :SyncedFolder, "vagrant/plugin/remote/synced_folder"
end

View File

@ -1,6 +1,6 @@
module Vagrant
module Plugin
module V2
module Remote
class Communicator
# This module enables Communicator for server mode
module Remote
@ -14,7 +14,7 @@ module Vagrant
end
def initialize(machine)
@logger = Log4r::Logger.new("vagrant::communicator")
@logger = Log4r::Logger.new("vagrant::remote::communicator")
@logger.debug("initializing communicator with remote baackend")
@machine = machine
@client = machine.client.communicate

View File

@ -17,7 +17,7 @@ module Vagrant
# version.
class Communicator
autoload :Remote, "vagrant/plugin/v2/communicator/remote"
autoload :Remote, "vagrant/plugin/remote/communicator"
# This returns true/false depending on if the given machine
# can be communicated with using this communicator. If this returns

View File

@ -268,6 +268,6 @@ module Vagrant
->{ Vagrant::MachineIndex::Entry.prepend(Vagrant::MachineIndex::Entry::Remote::InstanceMethods) },
->{ Vagrant::MachineIndex::Entry.extend(Vagrant::MachineIndex::Entry::Remote::ClassMethods) },
->{ Vagrant::Plugin::V2::SyncedFolder.prepend(Vagrant::Plugin::Remote::SyncedFolder::Remote) },
->{ Vagrant::Plugin::V2::Communicator.prepend(Vagrant::Plugin::V2::Communicator::Remote) },
->{ Vagrant::Plugin::V2::Communicator.prepend(Vagrant::Plugin::Remote::Communicator::Remote) },
].freeze
end