From 46aa1b3e4e785a1b462515924f22ccc68e1a5c85 Mon Sep 17 00:00:00 2001 From: sophia Date: Tue, 23 Nov 2021 13:24:59 -0600 Subject: [PATCH] Add synced folder service to list of services --- lib/vagrant/machine/remote.rb | 1 - plugins/commands/serve/client/synced_folder.rb | 4 ++-- plugins/commands/serve/command.rb | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/vagrant/machine/remote.rb b/lib/vagrant/machine/remote.rb index bae8cdc86..059b9bae8 100644 --- a/lib/vagrant/machine/remote.rb +++ b/lib/vagrant/machine/remote.rb @@ -373,7 +373,6 @@ module Vagrant def synced_folders folders = Vagrant::Plugin::V2::SyncedFolder::Collection.new synced_folder_clients = client.synced_folders - @logger.debug("synced folder clients: #{synced_folder_clients}") synced_folder_clients.each do |f| # TODO: get type of synced folder and wrap it up in this hash impl = "virtualbox" diff --git a/plugins/commands/serve/client/synced_folder.rb b/plugins/commands/serve/client/synced_folder.rb index 411f623d8..b839e5df2 100644 --- a/plugins/commands/serve/client/synced_folder.rb +++ b/plugins/commands/serve/client/synced_folder.rb @@ -4,11 +4,11 @@ module VagrantPlugins module CommandServe module Client class SyncedFolder - include CapabilityPlatform - prepend Util::ClientSetup prepend Util::HasLogger + include CapabilityPlatform + # @param [Sdk::Args::Machine] # @return [Boolean] def usable(machine) diff --git a/plugins/commands/serve/command.rb b/plugins/commands/serve/command.rb index 994758c81..e2c65b763 100644 --- a/plugins/commands/serve/command.rb +++ b/plugins/commands/serve/command.rb @@ -97,7 +97,8 @@ module VagrantPlugins [Service::InternalService, Service::ProviderService, Service::GuestService, - Service::HostService, Service::CommandService, Broker::Streamer].each do |service_klass| + Service::HostService, Service::CommandService, Service::SyncedFolderService, + Broker::Streamer].each do |service_klass| service = service_klass.new(broker: broker) s.handle(service) health_checker.add_status(service_klass,