vagrant/plugins/guests/linux/cap/port.rb

12 lines
224 B
Ruby
Raw Normal View History

module VagrantPlugins
module GuestLinux
module Cap
class Port
def self.port_open_check(machine, port)
machine.communicate.test("nc -z 127.0.0.1 #{port}")
end
end
end
end
end