diff --git a/plugins/commands/serve/service/provider_service.rb b/plugins/commands/serve/service/provider_service.rb index 13fac1e41..e1a87550c 100644 --- a/plugins/commands/serve/service/provider_service.rb +++ b/plugins/commands/serve/service/provider_service.rb @@ -1,11 +1,14 @@ require_relative 'proto/gen/plugin/plugin_pb' require_relative 'proto/gen/plugin/plugin_services_pb' +require 'logger' module VagrantPlugins module CommandServe module Serve class ProviderService < Hashicorp::Vagrant::Sdk::ProviderService::Service + LOG = Logger.new('/Users/sophia/project/vagrant-ruby/log.txt') + def usable(req, _unused_call) nil end @@ -31,11 +34,22 @@ module VagrantPlugins end def action_up(req, _unused_call) + LOG.debug("action up") + LOG.debug(req) nil end def action_up_spec(req, _unused_call) - nil + LOG.debug("action up spec") + # resultSpec = Hashicorp::Vagrant::FuncSpec.Value.new( + # name: "", + # type: "" + # ) + Hashicorp::Vagrant::Sdk::FuncSpec.new( + name: "test", + args: [], + result: [] + ) end end end