Update protos
This commit is contained in:
parent
57afe56edd
commit
7aaeaf2e46
@ -24,7 +24,7 @@ func (s *service) DeleteBox(
|
||||
req *vagrant_server.DeleteBoxRequest,
|
||||
) (empt *empty.Empty, err error) {
|
||||
err = s.state.BoxDelete(req.Box)
|
||||
return
|
||||
return &empty.Empty{}, nil
|
||||
}
|
||||
|
||||
func (s *service) GetBox(
|
||||
|
||||
@ -24,8 +24,7 @@ module Vagrant
|
||||
# @return [Vagrant::Box]
|
||||
def add(path, name, version, **opts)
|
||||
client.add(
|
||||
path, name, version, force=opts[:force],
|
||||
metadata_url=opts[:metadata_url], provider=opts[:providers]
|
||||
path, name, version, opts[:force], opts[:metadata_url], opts[:providers]
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
@ -743,10 +743,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
||||
optional :version, :string, 1
|
||||
end
|
||||
add_message "hashicorp.vagrant.sdk.Box.HasUpdateResponse" do
|
||||
optional :hasUpdate, :bool, 1
|
||||
optional :has_update, :bool, 1
|
||||
end
|
||||
add_message "hashicorp.vagrant.sdk.Box.InUseResponse" do
|
||||
optional :inUse, :bool, 1
|
||||
optional :in_use, :bool, 1
|
||||
end
|
||||
add_message "hashicorp.vagrant.sdk.Box.MetadataUrlResponse" do
|
||||
optional :metadataUrl, :string, 1
|
||||
|
||||
@ -21,14 +21,14 @@ module VagrantPlugins
|
||||
res = client.has_update(SDK::Box::HasUpdateRequest.new(
|
||||
version: version
|
||||
))
|
||||
res.hasUpdate
|
||||
res.has_update
|
||||
end
|
||||
|
||||
# @param [Sdk::Args::TargetIndex] index
|
||||
# @return [Bool] is in use
|
||||
def in_use(index)
|
||||
res = client.in_use(index)
|
||||
res.inUse
|
||||
res.in_use
|
||||
end
|
||||
|
||||
# @param [String] path
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user