2014-04-17 22:05:50 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module GuestLinux
|
|
|
|
module Cap
|
|
|
|
class Port
|
|
|
|
def self.port_open_check(machine, port)
|
2014-04-17 22:10:32 +00:00
|
|
|
machine.communicate.test("nc -z -w2 127.0.0.1 #{port}")
|
2014-04-17 22:05:50 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|