mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-06-11 09:40:07 -04:00
Add Machine state direct converter
This commit is contained in:
parent
df8f519337
commit
67a5c43873
1 changed files with 8 additions and 0 deletions
|
|
@ -564,6 +564,14 @@ class Hashicorp::Vagrant::Sdk::Args::Target::Machine
|
|||
end
|
||||
end
|
||||
|
||||
class Hashicorp::Vagrant::Sdk::Args::Target::Machine::State
|
||||
def to_ruby
|
||||
Vagrant::MachineState.new(
|
||||
m.id.to_sym, m.short_description, m.long_description
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
class Hashicorp::Vagrant::Sdk::Args::TargetIndex
|
||||
def to_ruby
|
||||
_vagrant_load_client(VagrantPlugins::CommandServe::Client::TargetIndex)
|
||||
|
|
|
|||
Loading…
Reference in a new issue