Add box metadata conversion

This commit is contained in:
Chris Roberts 2022-06-21 14:41:17 -07:00
parent 1bd6e4d946
commit a9b62812ac

View File

@ -296,6 +296,13 @@ class Hashicorp::Vagrant::Sdk::Args::Array
end
end
class Hashicorp::Vagrant::Sdk::Args::BoxMetadata
# TODO(spox): should this be returning a box metadata instance instead of client?
def to_ruby
_vagrant_load_client(VagrantPlugins::CommandServe::Client::BoxMetadata)
end
end
class Hashicorp::Vagrant::Sdk::Args::Class
def to_ruby
if name.to_s.empty?