Class: VagrantAutoDNS::Action::RedirectDNS
- Inherits:
-
Object
- Object
- VagrantAutoDNS::Action::RedirectDNS
- Includes:
- Common
- Defined in:
- lib/vagrant-autodns/actions/redirect_dns.rb
Instance Method Summary collapse
Methods included from Common
#call, #hostname, included, #initialize, #machine_name
Instance Method Details
#action ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/vagrant-autodns/actions/redirect_dns.rb', line 16 def action if machine.config.autodns.enabled? log.info("Applying iptables rule to host #{machine.name}") machine.guest.capability(:install_iptables) machine.guest.capability(:redirect_dns) end end |