Update namespace for machine
This commit is contained in:
parent
d88a1e1346
commit
48c0c96798
@ -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…
x
Reference in New Issue
Block a user