mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Update namespace for machine
This commit is contained in:
parent
d88a1e1346
commit
48c0c96798
1 changed files with 7 additions and 7 deletions
|
|
@ -11,11 +11,11 @@ module VagrantPlugins
|
|||
}
|
||||
i << Input.new(type: Broker)
|
||||
end
|
||||
super(inputs: inputs, output: Client::Machine, func: method(:converter))
|
||||
super(inputs: inputs, output: Client::Target::Machine, func: method(:converter))
|
||||
end
|
||||
|
||||
def converter(proto, broker)
|
||||
Client::Machine.load(proto.value.value, broker: broker)
|
||||
Client::Target::Machine.load(proto.value.value, broker: broker)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -26,11 +26,11 @@ module VagrantPlugins
|
|||
i << Input.new(type: SDK::Args::Target::Machine)
|
||||
i << Input.new(type: Broker)
|
||||
end
|
||||
super(inputs: inputs, output: Client::Machine, func: method(:converter))
|
||||
super(inputs: inputs, output: Client::Target::Machine, func: method(:converter))
|
||||
end
|
||||
|
||||
def converter(proto, broker)
|
||||
Client::Machine.load(proto, broker: broker)
|
||||
Client::Target::Machine.load(proto, broker: broker)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -41,11 +41,11 @@ module VagrantPlugins
|
|||
i << Input.new(type: String)
|
||||
i << Input.new(type: Broker)
|
||||
end
|
||||
super(inputs: inputs, output: Client::Machine, func: method(:converter))
|
||||
super(inputs: inputs, output: Client::Target::Machine, func: method(:converter))
|
||||
end
|
||||
|
||||
def converter(proto, broker)
|
||||
Client::Machine.load(proto, broker: broker)
|
||||
Client::Target::Machine.load(proto, broker: broker)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ module VagrantPlugins
|
|||
def initialize
|
||||
inputs = [].tap do |i|
|
||||
i << Input.new(type: Vagrant::Environment)
|
||||
i << Input.new(type: Client::Machine)
|
||||
i << Input.new(type: Client::Target::Machine)
|
||||
end
|
||||
super(inputs: inputs, output: Vagrant::Machine, func: method(:converter))
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue