Update Ruby clients for proto changes
This commit is contained in:
parent
398d982408
commit
adf2340712
@ -5,8 +5,9 @@ module VagrantPlugins
|
|||||||
# @return [Vagrant::Box] box added
|
# @return [Vagrant::Box] box added
|
||||||
def add(path, name, version, force=false, metadata_url=nil, providers=[])
|
def add(path, name, version, force=false, metadata_url=nil, providers=[])
|
||||||
logger.debug("adding box at path #{path}")
|
logger.debug("adding box at path #{path}")
|
||||||
|
args_path = SDK::Args::Path.new(path: path.to_s)
|
||||||
res = client.add(SDK::BoxCollection::AddRequest.new(
|
res = client.add(SDK::BoxCollection::AddRequest.new(
|
||||||
path: path.to_s, name: name, version: version, metadataUrl: metadata_url,
|
path: args_path, name: name, version: version, metadataUrl: metadata_url,
|
||||||
force: force, providers: Array(providers)
|
force: force, providers: Array(providers)
|
||||||
))
|
))
|
||||||
box_client = Box.load(res, broker: broker)
|
box_client = Box.load(res, broker: broker)
|
||||||
|
|||||||
@ -40,7 +40,7 @@ module VagrantPlugins
|
|||||||
# return [String]
|
# return [String]
|
||||||
def default_private_key
|
def default_private_key
|
||||||
resp = client.default_private_key(Empty.new)
|
resp = client.default_private_key(Empty.new)
|
||||||
resp.key
|
resp.path
|
||||||
end
|
end
|
||||||
|
|
||||||
# return [String]
|
# return [String]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user