Class: VagrantDns::NetworkBinder
- Inherits:
-
Object
- Object
- VagrantDns::NetworkBinder
- Defined in:
- lib/vagrant_dns/middleware/network_binder.rb
Instance Method Summary collapse
Instance Method Details
#bind(vm) ⇒ Object
8 9 10 11 |
# File 'lib/vagrant_dns/middleware/network_binder.rb', line 8 def bind(vm) (host,ip) = host_ip(vm) Status.new.report(host,ip,:up) end |
#unbind(vm) ⇒ Object
13 14 15 16 |
# File 'lib/vagrant_dns/middleware/network_binder.rb', line 13 def unbind(vm) (host,ip) = host_ip(vm) Status.new.report(host,ip,:down) end |