vagrant-serial 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,8 +7,8 @@ module Vagrant
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def call(env)
|
10
|
-
env[:vm].channel.execute("socat tcp-l:30001,reuseaddr,fork UNIX-CONNECT
|
11
|
-
env[:vm].channel.execute("socat tcp-l:30002,reuseaddr,fork UNIX-CONNECT
|
10
|
+
env[:vm].channel.execute("socat tcp-l:30001,reuseaddr,fork UNIX-CONNECT:#{ENV['HOME']}/serial/#{env[:vm].uuid}-com1 &")
|
11
|
+
env[:vm].channel.execute("socat tcp-l:30002,reuseaddr,fork UNIX-CONNECT:#{ENV['HOME']}/serial/#{env[:vm].uuid}-com2 &")
|
12
12
|
@app.call(env)
|
13
13
|
end
|
14
14
|
end
|
data/lib/vagrant-serial.rb
CHANGED
@@ -4,5 +4,5 @@ require "vagrant-serial/version"
|
|
4
4
|
require "vagrant-serial/middleware/configure"
|
5
5
|
require "vagrant-serial/middleware/forward"
|
6
6
|
|
7
|
-
Vagrant.actions[:start].insert_after Vagrant::Action::VM::
|
8
|
-
Vagrant.actions[:start].
|
7
|
+
Vagrant.actions[:start].insert_after Vagrant::Action::VM::Customize, Vagrant::Serial::Middleware::Configure
|
8
|
+
Vagrant.actions[:start].insert_after Vagrant::Action::VM::Boot, Vagrant::Serial::Middleware::Forward
|