Move remote communicator to remote plugin module
This commit is contained in:
parent
b9e7d2197e
commit
ab395ad730
@ -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
|
||||
|
||||
@ -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
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user