Get to run action up

This commit is contained in:
sophia 2021-01-06 17:29:34 -06:00 committed by Paul Hinze
parent 6d397a072d
commit 7438d2d7e7
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -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