mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-02-21 17:05:29 -05:00
11 lines
228 B
Ruby
11 lines
228 B
Ruby
module VagrantPlugins
|
|
module GuestLinux
|
|
module Cap
|
|
class Port
|
|
def self.port_open_check(machine, port)
|
|
machine.communicate.test("nc -z -w2 127.0.0.1 #{port}")
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|