Sha256: 95fe7273d9142d075691d7b2366c7614b5ede24ccac629990b17f34e64fc04ee
Contents?: true
Size: 1.06 KB
Versions: 4
Compression:
Stored size: 1.06 KB
Contents
module VagrantPlugins module CommandServe class Mappers # Build a remote UI from terminal UI client class UIFromTerminal < Mapper def initialize super( inputs: [Input.new(type: Client::Terminal)], output: Vagrant::UI::Remote, func: method(:converter) ) end def converter(client) Vagrant::UI::Remote.new(client) end end class UIToTerminal < Mapper def initialize super( inputs: [Input.new(type: Vagrant::UI::Interface)], output: Client::Terminal, func: method(:converter), ) end def converter(ui) ui.client end end class UIPrefixedToTerminal < Mapper def initialize super( inputs: [Input.new(type: Vagrant::UI::Prefixed)], output: Client::Terminal, func: method(:converter), ) end def converter(ui) ui.client end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems